Skip to content

Commit 79543e9

Browse files
try fix
1 parent 14f61ba commit 79543e9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,10 @@ function(add_warning_flags name)
381381
$<$<CXX_COMPILER_ID:MSVC>:/Zi /W4 /WX /wd4127 /wd4324 /wd4201>
382382
$<$<NOT:$<OR:$<CXX_COMPILER_ID:MSVC>,$<STREQUAL:${CMAKE_CXX_SIMULATE_ID},MSVC>>>:-fno-rtti -Wall -Wextra -Werror -Wundef>
383383
$<$<CXX_COMPILER_ID:Clang>:-Wsign-conversion -Wconversion>)
384-
if (NOT MINGW)
385-
target_link_options(${name} PRIVATE
386-
$<$<BOOL:${SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF}>:-Wl,--no-undefined>
387-
$<$<PLATFORM_ID:Windows>:$<${ci_or_debug}:/DEBUG>>)
388-
endif()
384+
385+
target_link_options(${name} PRIVATE
386+
$<$<BOOL:${SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF}>:-Wl,--no-undefined>
387+
$<$<PLATFORM_ID:Windows>:$<${ci_or_debug}:LINKER:/DEBUG>>)
389388
endfunction()
390389

391390
# To build with just the header library target define SNMALLOC_HEADER_ONLY_LIBRARY

0 commit comments

Comments
 (0)