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.
1 parent 58160a7 commit 4dfa298Copy full SHA for 4dfa298
CMakeLists.txt
@@ -401,11 +401,12 @@ if (NOT HIGHS_COVERAGE AND NOT APPLE)
401
check_cxx_compiler_flag("-mpopcntd" COMPILER_SUPPORTS_POPCNTD)
402
if(COMPILER_SUPPORTS_POPCNTD)
403
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