File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ add_custom_target(python)
1616
1717# Collect files
1818file (GLOB_RECURSE PYWRAP_HEADERS ${CMAKE_CURRENT_LIST_DIR} /src/*.hpp)
19-
2019file (GLOB_RECURSE PYWRAP_SOURCES ${CMAKE_CURRENT_LIST_DIR} /src/*.cpp)
2120
2221# Add simd feature detectors for current intel CPU
2322message ("-- CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR} " )
24- if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "AMD64" OR ${CMAKE_SYSTEM_PROCESSOR}
25- MATCHES "x86_64" )
23+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "(x86)|(X86)|(amd64)|(AMD64)" )
2624 python3_add_library(instructionset MODULE helpers/instruction-set.cpp)
2725 add_dependencies (python instructionset)
2826 target_link_libraries (instructionset PRIVATE proxsuite pybind11::module)
@@ -40,6 +38,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "AMD64" OR ${CMAKE_SYSTEM_PROCESSOR}
4038 EXPORT ${TARGETS_EXPORT_NAME}
4139 DESTINATION ${${PYWRAP} _INSTALL_DIR})
4240endif ()
41+
4342function (CREATE_PYTHON_TARGET target_name COMPILE_OPTIONS dependencies)
4443 python3_add_library(${target_name} MODULE ${PYWRAP_SOURCES} ${PYWRAP_HEADERS} )
4544 add_dependencies (python ${target_name} )
You can’t perform that action at this time.
0 commit comments