From ab731c046d782ad0c1ed7872bca9f1ae64cc9e33 Mon Sep 17 00:00:00 2001 From: Patryk Kaminski Date: Mon, 24 Feb 2025 12:39:58 +0100 Subject: [PATCH] Fix Windows Unix Makefiles generator builds Using Unix Makefiles CMake generator on Windows results in a build error. Now fetched hwloc is explicitly built before the library is linked with other UMF targets. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71d630fa57..7eafb7c3b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -283,7 +283,8 @@ else() message(STATUS "hwloc CMAKE_GENERATOR: ${CMAKE_GENERATOR}") - if(CMAKE_GENERATOR STREQUAL "Ninja") + if(CMAKE_GENERATOR STREQUAL "Ninja" OR CMAKE_GENERATOR STREQUAL + "Unix Makefiles") add_custom_command( COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${hwloc_targ_BINARY_DIR} -B build