mirror of
https://github.com/google/benchmark.git
synced 2024-11-26 16:31:54 +00:00
Merge pull request #125 from dcoeurjo/cmakeEmptybuildtype
Fixing cmake issue with empty cmake_build_type
This commit is contained in:
commit
f6c2ea7fef
|
@ -45,7 +45,9 @@ set_target_properties(cxx03_test
|
|||
add_test(cxx03 cxx03_test --benchmark_min_time=0.01)
|
||||
|
||||
# Add the coverage command(s)
|
||||
if(CMAKE_BUILD_TYPE)
|
||||
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
|
||||
endif()
|
||||
if (${CMAKE_BUILD_TYPE_LOWER} MATCHES "coverage")
|
||||
find_program(GCOV gcov)
|
||||
find_program(LCOV lcov)
|
||||
|
|
Loading…
Reference in a new issue