1
0

Added MSVC guard

This commit is contained in:
worktycho 2014-06-27 11:07:03 +01:00
parent 9e1829e4e6
commit 833d328435

View File

@ -27,10 +27,12 @@ endmacro()
macro(set_flags) macro(set_flags)
# Add coverage processing, if requested: # Add coverage processing, if requested:
if (${CMAKE_BUILD_TYPE} STREQUAL "COVERAGE") if (NOT MSVC)
message("Including CodeCoverage") if (${CMAKE_BUILD_TYPE} STREQUAL "COVERAGE")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/") message("Including CodeCoverage")
include(CodeCoverage) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/")
include(CodeCoverage)
endif()
endif() endif()
# Add the preprocessor macros used for distinguishing between debug and release builds (CMake does this automatically for MSVC): # Add the preprocessor macros used for distinguishing between debug and release builds (CMake does this automatically for MSVC):