summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:37:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:37:31 +0100
commit8ca6c65aef5dde65ac834be1fb8866e9bf0734db (patch)
tree2603d6db329b195a6d4043570da5df7575ae2c5f
parente727e6d7e621a575bb353fa5a8bd64efa0e17d00 (diff)
cmake/msvc: do it right this time
-rw-r--r--cmake/msvc.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 25b1169b..cc524668 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -54,14 +54,14 @@ set(_CXXFLAGS_RELEASE "${cc}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")
set(ldflags-shared-release "/OPT:REF /OPT:ICF=10")
-set(ldflags-shared "/DEBUG /WX")
+set(ldflags-shared "/DEBUG")
foreach (i MODULE EXE SHARED)
set(_LDFLAGS_${i} "${ldflags-shared}")
set(_LDFLAGS_${i}_RELEASE "${ldflags-shared-release}")
endforeach()
-set(_LDFLAGS "")
+set(_LDFLAGS "/WX")
set(_LDFLAGS_RELEASE "/LTCG:INCREMENTAL")
set(_LDFLAGS_DEBUG "")