diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 87df7d28d6..d7ac857f7c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -59,7 +59,7 @@ function(build_umf_test) set(INC_DIRS ${INC_DIRS} ${LEVEL_ZERO_INCLUDE_DIRS}) endif() - if(UMF_LINK_HWLOC_STATICALLY) + if(NOT UMF_DISABLE_HWLOC) set(INC_DIRS ${INC_DIRS} ${LIBHWLOC_INCLUDE_DIRS}) endif()