Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ if(NOT SNMALLOC_HEADER_ONLY_LIBRARY)
function(compile name TYPE ${ARGN})
add_library(${name} ${TYPE} ${ARGN})
target_link_libraries(${name} PRIVATE snmalloc)

# PRIVATE linking still touches INTERFACE level linking for unknown reasons.
# Check https://github.com/microsoft/snmalloc/pull/799 for details.
set_target_properties(${name} PROPERTIES INTERFACE_LINK_LIBRARIES "")

target_compile_definitions(${name} PRIVATE "SNMALLOC_USE_${SNMALLOC_CLEANUP}")

add_warning_flags(${name})
Expand Down
Loading