Skip to content

Commit fbedb31

Browse files
authored
CMAKE: Libs should not require headers (#797)
The API exposed by the various libraries in snmalloc all obey standard C std lib conventions, so no headers are required to consume them. This change updates the CMake configuration to not require headers for the libraries.
1 parent 0b70ad9 commit fbedb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ if(NOT SNMALLOC_HEADER_ONLY_LIBRARY)
508508

509509
function(compile name TYPE ${ARGN})
510510
add_library(${name} ${TYPE} ${ARGN})
511-
target_link_libraries(${name} snmalloc)
511+
target_link_libraries(${name} PRIVATE snmalloc)
512512
target_compile_definitions(${name} PRIVATE "SNMALLOC_USE_${SNMALLOC_CLEANUP}")
513513

514514
add_warning_flags(${name})

0 commit comments

Comments
 (0)