From a022a75b911f4b8714b127893d16e4a35772e421 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Sun, 20 Mar 2022 19:28:03 +0000 Subject: [PATCH] Fix Debug symbols for Windows CI. (#483) --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 131c3e6..339f4f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,10 +239,12 @@ endif() function(add_warning_flags name) target_compile_options(${name} PRIVATE - $<$:/Zi /W4 /WX /wd4127 /wd4324 /wd4201 $<${ci_or_debug}:/DEBUG>> + $<$:/Zi /W4 /WX /wd4127 /wd4324 /wd4201> $<$,$>>:-fno-exceptions -fno-rtti -Wall -Wextra -Werror -Wundef> $<$:-Wsign-conversion -Wconversion>) - target_link_options(${name} PRIVATE $<$:-Wl,--no-undefined>) + target_link_options(${name} PRIVATE + $<$:-Wl,--no-undefined> + $<$:$<${ci_or_debug}:/DEBUG>>) endfunction()