Added MSVC guard
This commit is contained in:
parent
9e1829e4e6
commit
833d328435
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user