From 4eb423312c587ad495ed8637f48e5769113bbf19 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Mon, 30 Sep 2013 15:56:46 -0600 Subject: [PATCH] Removed a duplicate section. --- CMakeLists.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78bca3bd6..1ce06319f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -421,14 +421,6 @@ IF(ENABLE_DISKLESS) SET(USE_DISKLESS ON) ENDIF() -IF(ENABLE_COVERAGE_TESTS) - IF(CMAKE_COMPILER_IS_GNUCC) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -W -fprofile-arcs -ftest-coverage") - SET(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") - ENDIF() -ENDIF() - OPTION(ENABLE_CONVERSION_WARNINGS "Enable warnings for implicit conversion from 64 to 32-bit datatypes." ON) IF(ENABLE_CONVERSION_WARNINGS) IF(NOT MSVC) @@ -655,8 +647,8 @@ ENDIF() # Provide the option to perform coverage tests. OPTION (ENABLE_COVERAGE_TESTS "Enable compiler flags needed to perform coverage tests." OFF) IF(ENABLE_COVERAGE_TESTS) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -W -profile-arcs -ftest-coverage") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -W -fprofile-arcs -ftest-coverage") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -profile-arcs -ftest-coverage") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") MESSAGE(STATUS "Coverage Tests: On.") ENDIF()