Skip to content

Commit a022a75

Browse files
authored
Fix Debug symbols for Windows CI. (#483)
1 parent 26324e8 commit a022a75

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,12 @@ endif()
239239

240240
function(add_warning_flags name)
241241
target_compile_options(${name} PRIVATE
242-
$<$<CXX_COMPILER_ID:MSVC>:/Zi /W4 /WX /wd4127 /wd4324 /wd4201 $<${ci_or_debug}:/DEBUG>>
242+
$<$<CXX_COMPILER_ID:MSVC>:/Zi /W4 /WX /wd4127 /wd4324 /wd4201>
243243
$<$<NOT:$<OR:$<CXX_COMPILER_ID:MSVC>,$<STREQUAL:${CMAKE_CXX_SIMULATE_ID},MSVC>>>:-fno-exceptions -fno-rtti -Wall -Wextra -Werror -Wundef>
244244
$<$<CXX_COMPILER_ID:Clang>:-Wsign-conversion -Wconversion>)
245-
target_link_options(${name} PRIVATE $<$<BOOL:${SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF}>:-Wl,--no-undefined>)
245+
target_link_options(${name} PRIVATE
246+
$<$<BOOL:${SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF}>:-Wl,--no-undefined>
247+
$<$<CXX_COMPILER_ID:MSVC>:$<${ci_or_debug}:/DEBUG>>)
246248
endfunction()
247249

248250

0 commit comments

Comments
 (0)