From a66c76acef6c995550b2d1f98b27471aa9de42cc Mon Sep 17 00:00:00 2001 From: Igor Chorazewicz Date: Mon, 29 Jul 2024 23:21:36 +0000 Subject: [PATCH] Allow completely disabling hwloc on windows --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c6d05d41..d104c42a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,7 +124,7 @@ if(NOT UMF_LINK_HWLOC_STATICALLY) set(DLL_PATH_LIST "${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_LIBRARY_DIRS}/../bin" ) -elseif(WINDOWS) +elseif(WINDOWS AND NOT UMF_DISABLE_HWLOC) include(FetchContent) set(HWLOC_ENABLE_TESTING OFF) set(HWLOC_SKIP_LSTOPO ON) @@ -151,7 +151,7 @@ elseif(WINDOWS) message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}") message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}") message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}") -else() +elseif(NOT UMF_DISABLE_HWLOC) include(FetchContent) message(STATUS "Will fetch hwloc from ${UMF_HWLOC_REPO}")