diff options
author | worktycho <work.tycho@gmail.com> | 2014-06-27 12:07:03 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-06-27 12:07:03 +0200 |
commit | 833d3284356972b06c6f34d7b91d1360a9570c5e (patch) | |
tree | 4522437b7ff6e5aedb268f38dec63402262e2ea2 /SetFlags.cmake | |
parent | Update SetFlags.cmake (diff) | |
download | cuberite-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.cmake | 10 |
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): |