Skip to content

Commit

Permalink
Added custom target to copy libhwloc-15.dll in Win64
Browse files Browse the repository at this point in the history
Signed-off-by: Vedant <[email protected]>
  • Loading branch information
vrnimje committed Jan 11, 2024
1 parent e67885b commit 7ac5b33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}/$<CONFIG>/bin/"
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${HWLOC_ROOT}/bin/libhwloc-15.dll" "${CMAKE_BINARY_DIR}/$<CONFIG>/bin/"
)
add_hpx_pseudo_dependencies(examples HwlocDLL)
endif()
endif()

# ##############################################################################
Expand Down

0 comments on commit 7ac5b33

Please sign in to comment.