Skip to content

Commit

Permalink
[hpx] Fix cmake config issue (#14112)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoebeHui authored Oct 20, 2020
1 parent 21bf5e9 commit 973ad93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ports/hpx/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: hpx
Version: 1.5.1
Port-Version: 1
Build-Depends: hwloc, boost-accumulators, boost-algorithm, boost-asio, boost-bimap, boost-config, boost-context, boost-dynamic-bitset, boost-exception, boost-filesystem, boost-iostreams, boost-lockfree, boost-program-options, boost-range, boost-spirit, boost-system, boost-throw-exception, boost-variant, boost-winapi
Homepage: https://github.com/STEllAR-GROUP/hpx
Description: The C++ Standards Library for Concurrency and Parallelism
Expand Down
5 changes: 5 additions & 0 deletions ports/hpx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ foreach(CMAKE_FILE IN LISTS CMAKE_FILES)
file(WRITE ${CMAKE_FILE} "${_contents}")
endforeach()

vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXConfig.cmake"
"set(HPX_BUILD_TYPE \"Release\")"
"set(HPX_BUILD_TYPE \"\${CMAKE_BUILD_TYPE}\")")

vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXMacros.cmake"
"set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH} \"\${CMAKE_CURRENT_LIST_DIR}\")"
Expand Down

0 comments on commit 973ad93

Please sign in to comment.