Skip to content

Commit da1296b

Browse files
authored
Update CMakeLists.txt
1 parent 95cb679 commit da1296b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ else()
1414
endif()
1515

1616
if("${Python_INTERPRETER_ID}" STREQUAL "PyPy")
17+
message(STATUS "PyPy SOABI: ${Python_SOABI}")
1718
execute_process(
1819
COMMAND "${Python_EXECUTABLE}" -c
1920
"import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX').split('.')[1])"
20-
OUTPUT_VARIABLE _platform_tag
21+
OUTPUT_VARIABLE Python_SOABI
2122
OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ECHO STDOUT)
22-
message(STATUS "PyPy SOABI: ${Python_SOABI}")
23-
if(NOT Python_SOABI MATCHES "${_platform_tag}$")
24-
set(Python_SOABI "${Python_SOABI}-${_platform_tag}")
25-
message(STATUS "New SOABI: ${Python_SOABI}")
26-
endif()
23+
message(STATUS "Corrected SOABI: ${Python_SOABI}")
2724
endif()
2825

2926
include(FetchContent)

0 commit comments

Comments
 (0)