diff --git a/CMakeLists.txt b/CMakeLists.txt index aab00aa71647..41c57743926f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2322,6 +2322,13 @@ endif() if(HPX_WITH_EXAMPLES) add_hpx_pseudo_target(examples) + if(HPX_WITH_FETCH_HWLOC AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" AND CMAKE_SIZEOF_VOID_P EQUAL 8) + add_custom_target(HwlocDLL ALL + COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/$/bin/" + COMMAND ${CMAKE_COMMAND} -E copy_if_different "${HWLOC_ROOT}/bin/libhwloc-15.dll" "${CMAKE_BINARY_DIR}/$/bin/" + ) + add_hpx_pseudo_dependencies(examples HwlocDLL) + endif() endif() # ##############################################################################