summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-06-27 12:07:03 +0200
committerworktycho <work.tycho@gmail.com>2014-06-27 12:07:03 +0200
commit833d3284356972b06c6f34d7b91d1360a9570c5e (patch)
tree4522437b7ff6e5aedb268f38dec63402262e2ea2 /SetFlags.cmake
parentUpdate SetFlags.cmake (diff)
downloadcuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar.gz
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar.bz2
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar.lz
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar.xz
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.tar.zst
cuberite-833d3284356972b06c6f34d7b91d1360a9570c5e.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 0b5593b19..e37dcd82c 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -27,10 +27,12 @@ endmacro()
macro(set_flags)
# Add coverage processing, if requested:
- if (${CMAKE_BUILD_TYPE} STREQUAL "COVERAGE")
- message("Including CodeCoverage")
- set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/")
- include(CodeCoverage)
+ if (NOT MSVC)
+ if (${CMAKE_BUILD_TYPE} STREQUAL "COVERAGE")
+ message("Including CodeCoverage")
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/")
+ include(CodeCoverage)
+ endif()
endif()
# Add the preprocessor macros used for distinguishing between debug and release builds (CMake does this automatically for MSVC):