Skip to content

Commit a66c76a

Browse files
committed
Allow completely disabling hwloc on windows
1 parent 068090f commit a66c76a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if(NOT UMF_LINK_HWLOC_STATICALLY)
124124
set(DLL_PATH_LIST
125125
"${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_LIBRARY_DIRS}/../bin"
126126
)
127-
elseif(WINDOWS)
127+
elseif(WINDOWS AND NOT UMF_DISABLE_HWLOC)
128128
include(FetchContent)
129129
set(HWLOC_ENABLE_TESTING OFF)
130130
set(HWLOC_SKIP_LSTOPO ON)
@@ -151,7 +151,7 @@ elseif(WINDOWS)
151151
message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}")
152152
message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}")
153153
message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}")
154-
else()
154+
elseif(NOT UMF_DISABLE_HWLOC)
155155
include(FetchContent)
156156
message(STATUS "Will fetch hwloc from ${UMF_HWLOC_REPO}")
157157

0 commit comments

Comments
 (0)