Merge pull request #3163 from Project-OSRM/pc-fixes

Add -l to rt and gcov
This commit is contained in:
Dane Springmeyer 2016-10-24 18:53:49 -07:00 committed by GitHub
commit 19eec48207

View File

@ -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()