File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
5
+ if (UMF_BUILD_SHARED_LIBRARY )
6
+ set (POOL_EXTRA_SRCS ${BA_SOURCES} )
7
+ endif ()
8
+
5
9
# libumf_pool_disjoint
6
10
if (UMF_BUILD_LIBUMF_POOL_DISJOINT )
7
11
add_umf_library (NAME disjoint_pool
8
12
TYPE STATIC
9
- SRCS pool_disjoint.cpp
13
+ SRCS pool_disjoint.cpp ${POOL_EXTRA_SRCS}
10
14
LIBS umf_utils )
11
15
12
16
add_library (${PROJECT_NAME} ::disjoint_pool ALIAS disjoint_pool )
@@ -34,7 +38,7 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
34
38
# This is a temporary fix for https://github.com/oneapi-src/unified-memory-framework/issues/161
35
39
add_umf_library (NAME jemalloc_pool
36
40
TYPE STATIC
37
- SRCS pool_jemalloc.c
41
+ SRCS pool_jemalloc.c ${POOL_EXTRA_SRCS}
38
42
LIBS c jemalloc umf_utils )
39
43
add_library (${PROJECT_NAME} ::jemalloc_pool ALIAS jemalloc_pool )
40
44
install (TARGETS jemalloc_pool
@@ -50,7 +54,7 @@ if(UMF_BUILD_LIBUMF_POOL_SCALABLE)
50
54
if (LINUX )
51
55
add_umf_library (NAME scalable_pool
52
56
TYPE STATIC
53
- SRCS pool_scalable.c
57
+ SRCS pool_scalable.c ${POOL_EXTRA_SRCS}
54
58
LIBS dl umf_utils )
55
59
add_library (${PROJECT_NAME} ::scalable_pool ALIAS scalable_pool )
56
60
install (TARGETS scalable_pool
You can’t perform that action at this time.
0 commit comments