Browse Source

Add full warning level

tags/version/0.2.5^0
Kai Kretschmann 1 month ago
parent
commit
bacda1100e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      CMakeLists.txt

+ 3
- 1
CMakeLists.txt View File

@@ -5,7 +5,9 @@ project (JCmeasure LANGUAGES CXX)
5 5
 SET(GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage")
6 6
 SET(GCC_COVERAGE_LINK_FLAGS    "-fprofile-arcs -lgcov")
7 7
 
8
-SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
8
+SET(GCC_WARNING_FLAGS "-Wall -Wextra")
9
+
10
+SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${GCC_WARNING_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
9 11
 SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
10 12
 
11 13
 set (CMAKE_CXX_STANDARD 11)

Loading…
Cancel
Save
Social stuff:
Mastodon