From 77e0ad2642e09a9a52e2dea487a717e277618ffd Mon Sep 17 00:00:00 2001 From: Georgi Mirazchiyski Date: Tue, 15 Apr 2025 12:01:43 +0100 Subject: [PATCH] Don't statically link HWLOC when it is set disabled --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9b4b3f0f5..36955ddc0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -180,7 +180,7 @@ target_compile_definitions(umf PRIVATE ${UMF_COMMON_COMPILE_DEFINITIONS}) add_dependencies(umf coarse) -if(UMF_LINK_HWLOC_STATICALLY) +if(NOT UMF_DISABLE_HWLOC AND UMF_LINK_HWLOC_STATICALLY) add_dependencies(umf ${UMF_HWLOC_NAME}) # On Darwin, link with the IOKit and Foundation frameworks, if they are # available in the system. This is to comply with hwloc which links these,