add -l to rt and gcov
This commit is contained in:
parent
46994e87be
commit
293856981f
@ -199,7 +199,7 @@ if (ENABLE_COVERAGE)
|
|||||||
message(ERROR "ENABLE_COVERAGE=ON only make sense with a Debug build")
|
message(ERROR "ENABLE_COVERAGE=ON only make sense with a Debug build")
|
||||||
endif()
|
endif()
|
||||||
message(INFO "Enabling coverage")
|
message(INFO "Enabling coverage")
|
||||||
set(MAYBE_COVERAGE_LIBRARIES "gcov")
|
set(MAYBE_COVERAGE_LIBRARIES "-lgcov")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftest-coverage -fprofile-arcs")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftest-coverage -fprofile-arcs")
|
||||||
endif()
|
endif()
|
||||||
if (ENABLE_SANITIZER)
|
if (ENABLE_SANITIZER)
|
||||||
@ -278,7 +278,7 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
set(MAYBE_RT_LIBRARY rt)
|
set(MAYBE_RT_LIBRARY -lrt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user