File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >>)
389388endfunction ()
390389
391390# To build with just the header library target define SNMALLOC_HEADER_ONLY_LIBRARY
You can’t perform that action at this time.
0 commit comments