diff options
Diffstat (limited to 'cmake/os')
-rw-r--r-- | cmake/os/Windows.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index ae0beeae5c5..ca6d13e1c1b 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -164,6 +164,8 @@ IF(MSVC) # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), # removed in VS2017 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") + ELSE() + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2OptimizeHugeFunctions") ENDIF() ENDIF() |