@@ -15,7 +15,8 @@ if(UMF_BUILD_LIBUMF_POOL_DISJOINT)
15
15
TYPE STATIC
16
16
SRCS pool_disjoint.cpp ${POOL_EXTRA_SRCS}
17
17
LIBS ${POOL_EXTRA_LIBS} )
18
- target_compile_definitions (disjoint_pool PUBLIC ${POOL_COMPILE_DEFINITIONS} )
18
+ target_compile_definitions (disjoint_pool
19
+ PRIVATE ${POOL_COMPILE_DEFINITIONS} )
19
20
20
21
add_library (${PROJECT_NAME} ::disjoint_pool ALIAS disjoint_pool )
21
22
@@ -39,7 +40,8 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
39
40
SRCS pool_jemalloc.c ${POOL_EXTRA_SRCS}
40
41
LIBS jemalloc ${POOL_EXTRA_LIBS} )
41
42
target_include_directories (jemalloc_pool PRIVATE ${JEMALLOC_INCLUDE_DIRS} )
42
- target_compile_definitions (jemalloc_pool PUBLIC ${POOL_COMPILE_DEFINITIONS} )
43
+ target_compile_definitions (jemalloc_pool
44
+ PRIVATE ${POOL_COMPILE_DEFINITIONS} )
43
45
add_library (${PROJECT_NAME} ::jemalloc_pool ALIAS jemalloc_pool )
44
46
install (TARGETS jemalloc_pool EXPORT ${PROJECT_NAME} -targets )
45
47
endif ()
@@ -58,7 +60,8 @@ if(UMF_BUILD_LIBUMF_POOL_SCALABLE)
58
60
SRCS pool_scalable.c ${POOL_EXTRA_SRCS}
59
61
LIBS ${LIBS_POOL_SCALABLE} )
60
62
target_include_directories (scalable_pool PRIVATE ${TBB_INCLUDE_DIRS} )
61
- target_compile_definitions (scalable_pool PUBLIC ${POOL_COMPILE_DEFINITIONS} )
63
+ target_compile_definitions (scalable_pool
64
+ PRIVATE ${POOL_COMPILE_DEFINITIONS} )
62
65
add_library (${PROJECT_NAME} ::scalable_pool ALIAS scalable_pool )
63
66
install (TARGETS scalable_pool EXPORT ${PROJECT_NAME} -targets )
64
67
endif ()
0 commit comments