@@ -52,6 +52,10 @@ option(
52
52
UMF_LINK_HWLOC_STATICALLY
53
53
"Link UMF with HWLOC library statically (supported for Linux, MacOS and Release build on Windows)"
54
54
OFF )
55
+ option (
56
+ UMF_DISABLE_HWLOC
57
+ "Disable features that requires hwloc (OS provider, memory targets, topology discovery)"
58
+ OFF )
55
59
option (UMF_FORMAT_CODE_STYLE
56
60
"Add clang, cmake, and black -format-check and -format-apply targets"
57
61
OFF )
@@ -63,10 +67,6 @@ option(UMF_USE_TSAN "Enable ThreadSanitizer checks" OFF)
63
67
option (UMF_USE_MSAN "Enable MemorySanitizer checks" OFF )
64
68
option (UMF_USE_VALGRIND "Enable Valgrind instrumentation" OFF )
65
69
option (UMF_USE_GCOV "Enable gcov support" OFF )
66
- option (
67
- UMF_DISABLE_HWLOC
68
- "Disable features that requires hwloc (OS provider, memory targets, topology discovery)"
69
- OFF )
70
70
71
71
# set UMF_PROXY_LIB_BASED_ON_POOL to one of: SCALABLE or JEMALLOC
72
72
set (KNOWN_PROXY_LIB_POOLS SCALABLE JEMALLOC )
@@ -289,8 +289,7 @@ if(UMF_BUILD_FUZZTESTS
289
289
add_link_options ("-fsanitize=fuzzer-no-link" )
290
290
endif ()
291
291
292
- # A header only library to specify include directories in transitive
293
- # dependencies.
292
+ # A header-only lib to specify include directories in transitive dependencies
294
293
add_library (umf_headers INTERFACE )
295
294
296
295
# Alias target to support FetchContent.
@@ -343,7 +342,6 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
343
342
)
344
343
endif ()
345
344
346
- # set UMF_PROXY_LIB_ENABLED
347
345
if (WINDOWS )
348
346
# TODO: enable the proxy library in the Debug build on Windows
349
347
#
@@ -362,6 +360,7 @@ if(WINDOWS)
362
360
)
363
361
endif ()
364
362
endif ()
363
+ # set UMF_PROXY_LIB_ENABLED
365
364
if (UMF_PROXY_LIB_BASED_ON_POOL STREQUAL SCALABLE )
366
365
if (UMF_POOL_SCALABLE_ENABLED )
367
366
set (UMF_PROXY_LIB_ENABLED ON )
@@ -391,10 +390,12 @@ else()
391
390
)
392
391
endif ()
393
392
393
+ # set optional symbols for map/def files
394
+ #
395
+ # TODO: ref. #649
394
396
set (UMF_OPTIONAL_SYMBOLS_LINUX "" )
395
397
set (UMF_OPTIONAL_SYMBOLS_WINDOWS "" )
396
398
397
- # Conditional configuration for Level Zero provider
398
399
if (UMF_BUILD_LEVEL_ZERO_PROVIDER )
399
400
add_optional_symbol (umfLevelZeroMemoryProviderOps )
400
401
endif ()
@@ -551,12 +552,12 @@ if(UMF_FORMAT_CODE_STYLE)
551
552
552
553
add_custom_target (
553
554
black-format-check
554
- COMMAND ${BLACK} --check --verbose ${CMAKE_SOURCE_DIR }
555
+ COMMAND ${BLACK} --check --verbose ${UMF_CMAKE_SOURCE_DIR }
555
556
COMMENT "Check Python files formatting using black formatter" )
556
557
557
558
add_custom_target (
558
559
black-format-apply
559
- COMMAND ${BLACK} ${CMAKE_SOURCE_DIR }
560
+ COMMAND ${BLACK} ${UMF_CMAKE_SOURCE_DIR }
560
561
COMMENT "Format Python files using black formatter" )
561
562
endif ()
562
563
0 commit comments