From 29efce1d12444598cb5417ae0c6268eff21b105b Mon Sep 17 00:00:00 2001 From: NJ-11 Date: Mon, 4 Nov 2024 10:15:25 +0800 Subject: [PATCH] fix:Incorrect file extension generated for .pyd file when specifying Python version --- cmake/nanobind-config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/nanobind-config.cmake b/cmake/nanobind-config.cmake index 312e828f..82d8abec 100644 --- a/cmake/nanobind-config.cmake +++ b/cmake/nanobind-config.cmake @@ -28,7 +28,7 @@ endif() # PyPy sets an invalid SOABI (platform missing), causing older FindPythons to # report an incorrect value. Only use it if it looks correct (X-X-X form). -if(DEFINED NB_SOABI AND "${NB_SOABI}" MATCHES ".+-.+-.+") +if(DEFINED NB_SOABI AND "${NB_SOABI}" MATCHES ".+-.+_.+") set(NB_SUFFIX ".${NB_SOABI}${NB_SUFFIX_EXT}") endif()