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.
This commit is contained in:
committed by
GitHub
parent
0b70ad97a6
commit
fbedb31504
@@ -508,7 +508,7 @@ if(NOT SNMALLOC_HEADER_ONLY_LIBRARY)
|
|||||||
|
|
||||||
function(compile name TYPE ${ARGN})
|
function(compile name TYPE ${ARGN})
|
||||||
add_library(${name} ${TYPE} ${ARGN})
|
add_library(${name} ${TYPE} ${ARGN})
|
||||||
target_link_libraries(${name} snmalloc)
|
target_link_libraries(${name} PRIVATE snmalloc)
|
||||||
target_compile_definitions(${name} PRIVATE "SNMALLOC_USE_${SNMALLOC_CLEANUP}")
|
target_compile_definitions(${name} PRIVATE "SNMALLOC_USE_${SNMALLOC_CLEANUP}")
|
||||||
|
|
||||||
add_warning_flags(${name})
|
add_warning_flags(${name})
|
||||||
|
|||||||
Reference in New Issue
Block a user