forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HPX] Don't remove HPXCacheVariables.cmake during install (microsoft#…
…23042) * Don't remove HPXCacheVariables.cmake during install - make sure HPXCMakeVariables.cmake does not contain any directory names * Fixing versions
- Loading branch information
Showing
5 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/cmake/HPX_ForwardCacheVariables.cmake b/cmake/HPX_ForwardCacheVariables.cmake | ||
index 7c434085a76..34cc47c7750 100644 | ||
--- a/cmake/HPX_ForwardCacheVariables.cmake | ||
+++ b/cmake/HPX_ForwardCacheVariables.cmake | ||
@@ -23,6 +23,17 @@ set(_cache_var_file_template | ||
) | ||
set(_cache_variables) | ||
foreach(_var IN LISTS cache_vars) | ||
+ if(HPX_WITH_VCPKG) | ||
+ # avoid writing directory names into cache file | ||
+ string(FIND ${_var} "_DIR" _pos) | ||
+ if(NOT ${_pos} EQUAL -1) | ||
+ continue() | ||
+ endif() | ||
+ string(FIND ${_var} "_PATH" _pos) | ||
+ if(NOT ${_pos} EQUAL -1) | ||
+ continue() | ||
+ endif() | ||
+ endif() | ||
set(_cache_variables "${_cache_variables}set(${_var} ${${_var}})\n") | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters