remove special case CMake code for versions before 3.16

This commit is contained in:
Axel Kohlmeyer
2023-06-30 23:15:37 -04:00
parent 378ef4b23e
commit 71b48253e8
14 changed files with 57 additions and 210 deletions

View File

@ -35,11 +35,7 @@ endforeach()
# must repeat handling coverage for older CMake
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND ENABLE_COVERAGE)
if(CMAKE_VERSION VERSION_LESS 3.13)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_${CMAKE_BUILD_TYPE}_FLAGS} --coverage")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_${CMAKE_BUILD_TYPE}_FLAGS} --coverage")
endif()
########################################