Skip to content

Commit 0d2b063

Browse files
Merge pull request #1505 from lukaszstolarczuk/check-for-autoreconf
[CMake] Fail early in configure, if autoreconf is missing
2 parents f502e96 + 878fae1 commit 0d2b063

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)