Commit c125a649 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Move choice of test build flag settings.

parent 5e5dab33
......@@ -75,16 +75,6 @@ if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
endif(UNIX)
if(NOT APPLE AND NOT MSVC)
if(CMAKE_COMPILER_IS_GNUCXX AND DTK_ENABLE_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
endif(CMAKE_COMPILER_IS_GNUCXX AND DTK_ENABLE_COVERAGE)
endif(NOT APPLE AND NOT MSVC)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......@@ -148,6 +138,12 @@ enable_testing()
if(DTK_ENABLE_COVERAGE)
if(UNIX AND CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
endif(UNIX AND CMAKE_COMPILER_IS_GNUCXX)
include(dtkCodeCoverage)
include(FindPythonInterp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment