Skip to content

Commit af22873

Browse files
authored
[HPX] Don't remove HPXCacheVariables.cmake during install (#23042)
* Don't remove HPXCacheVariables.cmake during install - make sure HPXCMakeVariables.cmake does not contain any directory names * Fixing versions
1 parent 43235cf commit af22873

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

ports/hpx/fix-cmakecache-paths.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/cmake/HPX_ForwardCacheVariables.cmake b/cmake/HPX_ForwardCacheVariables.cmake
2+
index 7c434085a76..34cc47c7750 100644
3+
--- a/cmake/HPX_ForwardCacheVariables.cmake
4+
+++ b/cmake/HPX_ForwardCacheVariables.cmake
5+
@@ -23,6 +23,17 @@ set(_cache_var_file_template
6+
)
7+
set(_cache_variables)
8+
foreach(_var IN LISTS cache_vars)
9+
+ if(HPX_WITH_VCPKG)
10+
+ # avoid writing directory names into cache file
11+
+ string(FIND ${_var} "_DIR" _pos)
12+
+ if(NOT ${_pos} EQUAL -1)
13+
+ continue()
14+
+ endif()
15+
+ string(FIND ${_var} "_PATH" _pos)
16+
+ if(NOT ${_pos} EQUAL -1)
17+
+ continue()
18+
+ endif()
19+
+ endif()
20+
set(_cache_variables "${_cache_variables}set(${_var} ${${_var}})\n")
21+
endforeach()
22+

ports/hpx/portfile.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ vcpkg_from_github(
66
REF 1.7.1
77
SHA512 6bdb294da393a198abf81d5f63799a066334755eed0fda40bbfc4e9a774b6e19a3e5ad7ab45c989d31f3797e7b547bb552c29f51b552d9a79d166f86aee375a3
88
HEAD_REF stable
9-
PATCHES fix-dependency-hwloc.patch
9+
PATCHES
10+
fix-dependency-hwloc.patch
11+
fix-cmakecache-paths.patch
1012
)
1113

1214
set(HPX_WITH_MALLOC system)
@@ -93,6 +95,5 @@ vcpkg_fixup_pkgconfig()
9395

9496
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/hpxcxx" "\"${CURRENT_PACKAGES_DIR}\"" "os.path.dirname(os.path.dirname(os.path.realpath(__file__)))")
9597
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/hpxcxx" "\"${CURRENT_PACKAGES_DIR}/debug\"" "os.path.dirname(os.path.dirname(os.path.realpath(__file__)))")
96-
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/hpx/HPXCacheVariables.cmake")
9798

9899
vcpkg_copy_pdbs()

ports/hpx/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hpx",
33
"version-semver": "1.7.1",
4-
"port-version": 4,
4+
"port-version": 5,
55
"description": [
66
"The C++ Standards Library for Concurrency and Parallelism",
77
"HPX is a C++ Standards Library for Concurrency and Parallelism. It implements all of the corresponding facilities as defined by the C++ Standard. Additionally, in HPX we implement functionalities proposed as part of the ongoing C++ standardization process. We also extend the C++ Standard APIs to the distributed case."

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@
27382738
},
27392739
"hpx": {
27402740
"baseline": "1.7.1",
2741-
"port-version": 4
2741+
"port-version": 5
27422742
},
27432743
"http-parser": {
27442744
"baseline": "2.9.4",

versions/h-/hpx.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "48d153f2932b01257af5a799676268abdfb35fac",
5+
"version-semver": "1.7.1",
6+
"port-version": 5
7+
},
38
{
49
"git-tree": "815641d6119376c546119a841f6c035e8f27b8da",
510
"version-semver": "1.7.1",

0 commit comments

Comments
 (0)