@@ -100,6 +100,14 @@ else()
100
100
message (FATAL_ERROR "Unknown OS type" )
101
101
endif ()
102
102
103
+ if (NOT DEFINED UMF_HWLOC_REPO )
104
+ set (UMF_HWLOC_REPO "https://github.com/open-mpi/hwloc.git" )
105
+ endif ()
106
+
107
+ if (NOT DEFINED UMF_HWLOC_TAG )
108
+ set (UMF_HWLOC_TAG hwloc-2.10.0 )
109
+ endif ()
110
+
103
111
if (NOT UMF_LINK_HWLOC_STATICALLY )
104
112
if (NOT UMF_DISABLE_HWLOC )
105
113
pkg_check_modules (LIBHWLOC hwloc>=2.3.0 )
@@ -121,10 +129,13 @@ elseif(WINDOWS)
121
129
set (HWLOC_ENABLE_TESTING OFF )
122
130
set (HWLOC_SKIP_LSTOPO ON )
123
131
set (HWLOC_SKIP_TOOLS ON )
132
+
133
+ message (STATUS "Will fetch hwloc from ${UMF_HWLOC_REPO} " )
134
+
124
135
FetchContent_Declare (
125
136
hwloc_targ
126
- GIT_REPOSITORY "https://github.com/open-mpi/hwloc.git"
127
- GIT_TAG hwloc-2.10.0
137
+ GIT_REPOSITORY ${UMF_HWLOC_REPO}
138
+ GIT_TAG ${UMF_HWLOC_TAG}
128
139
SOURCE_SUBDIR contrib/windows-cmake/ FIND_PACKAGE_ARGS )
129
140
130
141
FetchContent_GetProperties (hwloc_targ )
@@ -142,10 +153,12 @@ elseif(WINDOWS)
142
153
message (STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS} " )
143
154
else ()
144
155
include (FetchContent )
156
+ message (STATUS "Will fetch hwloc from ${UMF_HWLOC_REPO} " )
157
+
145
158
FetchContent_Declare (
146
159
hwloc_targ
147
- GIT_REPOSITORY "https://github.com/open-mpi/hwloc.git"
148
- GIT_TAG hwloc-2.10.0 )
160
+ GIT_REPOSITORY ${UMF_HWLOC_REPO}
161
+ GIT_TAG ${UMF_HWLOC_TAG} )
149
162
150
163
FetchContent_GetProperties (hwloc_targ )
151
164
if (NOT hwloc_targ_POPULATED )
0 commit comments