File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,16 @@ set(TESTS eiquadprog-basic eiquadprog-fast eiquadprog-rt eiquadprog-both
2424foreach (test ${TESTS} )
2525 add_unit_test(${test} ${test} .cpp)
2626 target_link_libraries (${test} ${PROJECT_NAME} Boost::unit_test_framework)
27- if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" )
28- target_compile_options ( ${test} PRIVATE "-Wno-sign-conversion"
29- ) # We have a lot of implicit size_t to Eigen::Index conversions
27+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU| Clang" )
28+ # We have a lot of implicit size_t to Eigen::Index conversions
29+ target_compile_options ( ${test} PRIVATE "-Wno-sign-conversion" )
3030 endif ()
3131endforeach (test ${TESTS} )
3232
3333add_library (testab SHARED TestA.cpp TestB.cpp)
3434target_link_libraries (testab ${PROJECT_NAME} )
3535target_link_libraries (test -integration testab)
36- if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" )
37- target_compile_options (
38- testab PRIVATE "-Wno-sign-conversion" ) # We have a lot of implicit size_t to
39- # Eigen::Index conversions
36+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
37+ # We have a lot of implicit size_t to Eigen::Index conversions
38+ target_compile_options (testab PRIVATE "-Wno-sign-conversion" )
4039endif ()
You can’t perform that action at this time.
0 commit comments