We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7909d15 + 8366a75 commit 6c39840Copy full SHA for 6c39840
CMakeLists.txt
@@ -400,12 +400,13 @@ if (NOT HIGHS_COVERAGE AND NOT APPLE)
400
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(ppc64|powerpc64)")
401
check_cxx_compiler_flag("-mpopcntd" COMPILER_SUPPORTS_POPCNTD)
402
if(COMPILER_SUPPORTS_POPCNTD)
403
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntd")
+ # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntd")
404
+ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-mpopcntd>")
405
endif()
406
else()
407
check_cxx_compiler_flag("-mpopcnt" COMPILER_SUPPORTS_POPCNT)
408
if(COMPILER_SUPPORTS_POPCNT)
- add_compile_options(-mpopcnt)
409
+ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-mpopcnt>")
410
411
412
0 commit comments