File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,18 @@ 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- target_compile_options (
28- ${test} PRIVATE "-Wno-sign-conversion" ) # We have a lot of implicit size_t
29- # to Eigen::Index conversions
27+ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" )
28+ target_compile_options (
29+ ${test} PRIVATE "-Wno-sign-conversion" ) # We have a lot of implicit size_t
30+ # to Eigen::Index conversions
31+ endif ()
3032endforeach (test ${TESTS} )
3133
3234add_library (testab SHARED TestA.cpp TestB.cpp)
3335target_link_libraries (testab ${PROJECT_NAME} )
3436target_link_libraries (test -integration testab)
35- target_compile_options (
36- testab PRIVATE "-Wno-sign-conversion" ) # We have a lot of implicit size_t to
37- # Eigen::Index conversions
37+ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" )
38+ target_compile_options (
39+ testab PRIVATE "-Wno-sign-conversion" ) # We have a lot of implicit size_t to
40+ # Eigen::Index conversions
41+ endif ()
You can’t perform that action at this time.
0 commit comments