File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,8 @@ if(UMF_LINK_HWLOC_STATICALLY)
280280 endif ()
281281
282282 message (
283- STATUS "Will fetch hwloc from ${UMF_HWLOC_REPO} (tag: ${UMF_HWLOC_TAG} )"
283+ STATUS
284+ "Will fetch hwloc from ${UMF_HWLOC_REPO} (tag: ${UMF_HWLOC_TAG} ) and link it statically"
284285 )
285286
286287 if (WINDOWS)
@@ -309,6 +310,14 @@ if(UMF_LINK_HWLOC_STATICALLY)
309310 set (LIBHWLOC_INCLUDE_DIRS ${hwloc_targ_BINARY_DIR} /include )
310311 set (LIBHWLOC_FOUND TRUE )
311312 else () # not Windows
313+ find_program (AUTORECONF_EXECUTABLE autoreconf)
314+ if (NOT AUTORECONF_EXECUTABLE)
315+ message (
316+ FATAL_ERROR
317+ "autoreconf is not installed, but it's needed in hwloc configure step. "
318+ "Either install it, or set UMF_LINK_HWLOC_STATICALLY=OFF and install hwloc >= 2.3.0 in your system."
319+ )
320+ endif ()
312321 FetchContent_Declare(
313322 hwloc_targ
314323 GIT_REPOSITORY ${UMF_HWLOC_REPO}
You can’t perform that action at this time.
0 commit comments