diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index a8beb71af657177de51e4cdfe038e6c6f0cda4e7..3d2b4a5e04de5041e9a95aa8842f406538238669 100644 --- a/scripts/cmake/CompilerSetup.cmake +++ b/scripts/cmake/CompilerSetup.cmake @@ -50,7 +50,7 @@ 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_CRT_XNONSTDC_NO_WARNINGS -D__restrict__=__restrict) # Sets warning level 3 and ignores some warnings SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4290 /wd4267") # cygwin