summaryrefslogtreecommitdiff
path: root/cmake/modules/CompilerSetup.cmake
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2016-12-25 02:10:17 +0100
committerFelix Morgner <felix.morgner@gmail.com>2016-12-25 02:10:17 +0100
commitdf0f36827f94b58af4a0d6547743f2764371c88b (patch)
tree31c6554e08ec4724c69494e2cd7f98d91f67ae1f /cmake/modules/CompilerSetup.cmake
parentef8699a4d40608d16e6dbfd978008c9894b8d4d0 (diff)
downloadextfs-df0f36827f94b58af4a0d6547743f2764371c88b.tar.xz
extfs-df0f36827f94b58af4a0d6547743f2764371c88b.zip
project: Add CI and coverage support
Diffstat (limited to 'cmake/modules/CompilerSetup.cmake')
-rw-r--r--cmake/modules/CompilerSetup.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/CompilerSetup.cmake b/cmake/modules/CompilerSetup.cmake
index 82d0b2d..40c297f 100644
--- a/cmake/modules/CompilerSetup.cmake
+++ b/cmake/modules/CompilerSetup.cmake
@@ -113,3 +113,10 @@ set(
CACHE STRING "Flags used by the compiler during release builds for minimum size."
FORCE
)
+
+# Export additional C++ compile flags for coverage builds
+set(
+ CMAKE_CXX_FLAGS_COVERAGE "-O0 -g --coverage"
+ CACHE STRING "Flags used by the compiler during coverage builds."
+ FORCE
+ )