File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ set_target_properties(clar PROPERTIES
2020 C_EXTENSIONS OFF
2121)
2222
23+ if (NOT WIN32 )
24+ set (CLAR_LIBRARIES m)
25+ endif ()
26+
2327if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
2428 include (CTest)
2529 if (BUILD_TESTING)
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ target_include_directories(example PRIVATE
2525 "${CMAKE_SOURCE_DIR} "
2626 "${CMAKE_CURRENT_BINARY_DIR} "
2727)
28- target_link_libraries (example clar)
28+ target_link_libraries (example clar ${CLAR_LIBRARIES} )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ target_include_directories(selftest PRIVATE
3838 "${CMAKE_SOURCE_DIR} "
3939 "${CMAKE_CURRENT_BINARY_DIR} "
4040)
41- target_link_libraries (selftest clar)
41+ target_link_libraries (selftest clar ${CLAR_LIBRARIES} )
4242
4343add_test (NAME build_selftest_suite
4444 COMMAND "${CMAKE_COMMAND} " --build "${CMAKE_BINARY_DIR} " --config "$<CONFIG>" --target selftest_suite
Original file line number Diff line number Diff line change @@ -37,4 +37,4 @@ target_include_directories(selftest_suite PRIVATE
3737 "${CMAKE_SOURCE_DIR} "
3838 "${CMAKE_CURRENT_BINARY_DIR} "
3939)
40- target_link_libraries (selftest_suite clar)
40+ target_link_libraries (selftest_suite clar ${CLAR_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments