From b56caf95c238adb3bcc6dbae835774adbf12a3a9 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Mon, 14 May 2012 10:43:14 +0200 Subject: [PATCH] Disabled 'Fast Runtime Checks' on Visual Studio as they slow down debug builds unnecessary. See this explanation: http://randomascii.wordpress.com/2011/07/22/visual-c-debug-buildsfast-checks-cause-5x-slowdowns/ --- scripts/cmake/CompilerSetup.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index 72a7e8c67b8..15cbb475bf4 100644 --- a/scripts/cmake/CompilerSetup.cmake +++ b/scripts/cmake/CompilerSetup.cmake @@ -1,5 +1,6 @@ INCLUDE(ResetConfigurations) # To Debug, Release, RelWithDbgInfo INCLUDE(SetDefaultBuildType) +INCLUDE(DisableCompilerFlag) SET_DEFAULT_BUILD_TYPE(Debug) INCLUDE(MSVCMultipleProcessCompile) # /MP switch (multi processor) for VS @@ -67,6 +68,8 @@ IF (WIN32) ) # Sets warning level 3 and ignores some warnings SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4290 /wd4267") + + DisableCompilerFlag(DEBUG /RTC1) # cygwin ELSE (MSVC) MESSAGE (STATUS "Might be GCC under cygwin.") -- GitLab