summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:33:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:33:58 +0100
commite727e6d7e621a575bb353fa5a8bd64efa0e17d00 (patch)
tree72382f0f99be9258c7d632e5fd0620e9e232b478
parentebfb2842786e63e4858fc800d5b64506f622e00e (diff)
cmake/msvc: bail on linker errors
-rw-r--r--cmake/msvc.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 32e32641..25b1169b 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -54,7 +54,7 @@ set(_CXXFLAGS_RELEASE "${cc}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")
set(ldflags-shared-release "/OPT:REF /OPT:ICF=10")
-set(ldflags-shared "/DEBUG")
+set(ldflags-shared "/DEBUG /WX")
foreach (i MODULE EXE SHARED)
set(_LDFLAGS_${i} "${ldflags-shared}")