summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-18 15:22:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-18 15:22:17 +0200
commitb81b694aea7adb4128a1b58b91689e843235defa (patch)
treecb2b4a154d4a417696dc002b0ee86d6c2ae5d7dd /cmake/msvc.cmake
parent29cdbe6d487627dee375c948e6527344c0388721 (diff)
cmake/msvc: disable buggy incremental LTO
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r--cmake/msvc.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 06f90a49..cef20a85 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -100,7 +100,7 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
add_link_options(-cgthreads:1)
-set(_CFLAGS "-diagnostics:classic -Zc:preprocessor -wd4117 -Zi -Zf -Zo -bigobj -cgthreads1 -vd0")
+set(_CFLAGS "-diagnostics:caret -Zc:preprocessor -wd4117 -Zi -Zf -Zo -bigobj -cgthreads1 -vd0")
if(NOT opentrack-no-static-crt)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded" CACHE INTERNAL "" FORCE)
else()
@@ -116,11 +116,11 @@ set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")
set(_LDFLAGS "")
-set(_LDFLAGS_RELEASE "-OPT:REF,ICF=10 -LTCG:INCREMENTAL -DEBUG:FULL")
+set(_LDFLAGS_RELEASE "-OPT:REF,ICF=10 -LTCG -DEBUG:FULL")
set(_LDFLAGS_DEBUG "-DEBUG:FULL")
set(_LDFLAGS_STATIC "")
-set(_LDFLAGS_STATIC_RELEASE "-LTCG:INCREMENTAL")
+set(_LDFLAGS_STATIC_RELEASE "-LTCG")
set(_LDFLAGS_STATIC_DEBUG "")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)