Skip to content

Commit 7ef522d

Browse files
Merge pull request #314 from ldorau/Clean_up_CMake_definitions
Clean up CMake definitions
2 parents 0d15548 + 3855475 commit 7ef522d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER)
8282
set(UMF_SOURCES_LINUX ${UMF_SOURCES_LINUX}
8383
provider/provider_level_zero.c)
8484

85-
if(LINUX)
86-
set(UMF_COMPILE_DEFINITIONS ${UMF_COMPILE_DEFINITIONS}
87-
"UMF_BUILD_LEVEL_ZERO_PROVIDER=1")
88-
endif()
85+
set(UMF_COMPILE_DEFINITIONS ${UMF_COMPILE_DEFINITIONS}
86+
"UMF_BUILD_LEVEL_ZERO_PROVIDER=1")
8987
endif()
9088

9189
if(LINUX)

src/pool/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
5151
endif()
5252

5353
# libumf_pool_scalable
54-
if(LINUX)
55-
set(LIBS_POOL_SCALABLE dl umf_utils)
56-
elseif(WINDOWS)
57-
set(LIBS_POOL_SCALABLE umf_utils)
58-
endif()
59-
6054
if(UMF_BUILD_LIBUMF_POOL_SCALABLE)
6155
if(LINUX OR WINDOWS)
56+
if(LINUX)
57+
set(LIBS_POOL_SCALABLE dl umf_utils)
58+
elseif(WINDOWS)
59+
set(LIBS_POOL_SCALABLE umf_utils)
60+
endif()
61+
6262
add_umf_library(NAME scalable_pool
6363
TYPE STATIC
6464
SRCS pool_scalable.c ${POOL_EXTRA_SRCS}

0 commit comments

Comments
 (0)