summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-11-05 16:40:09 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-11-05 16:40:09 +0100
commit73dffca24e6926d2bd573d9223b2b7f3efd8f31d (patch)
tree9876216347b3a88476457db8f66761a69dde47ac
parentde6335b9944190ec5454ff4052710d05d8b02b43 (diff)
downloadbiboumi-73dffca24e6926d2bd573d9223b2b7f3efd8f31d.tar.gz
biboumi-73dffca24e6926d2bd573d9223b2b7f3efd8f31d.tar.bz2
biboumi-73dffca24e6926d2bd573d9223b2b7f3efd8f31d.tar.xz
biboumi-73dffca24e6926d2bd573d9223b2b7f3efd8f31d.zip
Only include the coverage flags when compiling with gcc
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 060fa11..7c27477 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,9 @@ set(${PROJECT_NAME}_VERSION_MINOR 0)
set(${PROJECT_NAME}_VERSION_SUFFIX "~dev")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra")
-set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
+endif()
# Define a __FILENAME__ macro to get the filename of each file, instead of
# the full path as in __FILE__