summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r--cmake/msvc.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 9136e2eb..379bf9b4 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -65,11 +65,15 @@ set(_CXXFLAGS_RELEASE "${cc}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")
set(_LDFLAGS "-machine:X86 -DEBUG")
-set(_LDFLAGS_RELEASE "-LTCG:INCREMENTAL -OPT:REF -OPT:ICF=10")
+
+set(_ltcg "-LTCG")
+#set(_ltcg "-LTCG:INCREMENTAL")
+
+set(_LDFLAGS_RELEASE "-OPT:REF,ICF ${_ltcg}")
set(_LDFLAGS_DEBUG "")
set(_LDFLAGS_STATIC "-machine:X86 -WX")
-set(_LDFLAGS_STATIC_RELEASE "-LTCG:INCREMENTAL")
+set(_LDFLAGS_STATIC_RELEASE "${_ltcg}")
set(_LDFLAGS_STATIC_DEBUG "")
set(CMAKE_RC_FLAGS "/nologo -DWIN32")