From 20be374432cc38d4ffde5da1ffe2a71e439b4667 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 11 Jan 2012 16:26:16 +0100 Subject: [PATCH] Mentioned Github bug number 5. --- scripts/cmake/CompilerSetup.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index 3d2b4a5e04d..4d414a8d6c7 100644 --- a/scripts/cmake/CompilerSetup.cmake +++ b/scripts/cmake/CompilerSetup.cmake @@ -49,8 +49,12 @@ ENDIF (OGS_PROFILE) IF (WIN32) ## For Visual Studio compiler IF (MSVC) - ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS - -D_CRT_XNONSTDC_NO_WARNINGS -D__restrict__=__restrict) + ADD_DEFINITIONS( + -D_CRT_SECURE_NO_WARNINGS + -D_CRT_NONSTDC_NO_WARNINGS + -D_CRT_XNONSTDC_NO_WARNINGS + -D__restrict__=__restrict # this fixes #5 + ) # Sets warning level 3 and ignores some warnings SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4290 /wd4267") # cygwin -- GitLab