summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-05-05 13:44:54 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-05-12 14:34:23 (GMT)
commit0199dd9f1b48b47ae63547ffe737ea9169caf511 (patch)
treea7a7c504915a027a699a92b098a553fd2e554a64 /Modules/ExternalProject.cmake
parent615129f3ebd308abeaaee7f5f0689e7fc4616c28 (diff)
downloadCMake-0199dd9f1b48b47ae63547ffe737ea9169caf511.zip
CMake-0199dd9f1b48b47ae63547ffe737ea9169caf511.tar.gz
CMake-0199dd9f1b48b47ae63547ffe737ea9169caf511.tar.bz2
ExternalProject: expose _ep_cache_args_script to the caller
This is needed so that the caller can add a dependency on the cache file. Fixes: #20668
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index a9448e5..12a91b3 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -2974,6 +2974,10 @@ function(_ep_extract_configure_command var name)
endif()
_ep_write_initial_cache(${name} "${_ep_cache_args_script}" "${script_initial_cache_force}${script_initial_cache_default}")
list(APPEND cmd "-C${_ep_cache_args_script}")
+ _ep_replace_location_tags(${name} _ep_cache_args_script)
+ set(_ep_cache_args_script
+ "${_ep_cache_args_script}"
+ PARENT_SCOPE)
endif()
list(APPEND cmd "<SOURCE_DIR><SOURCE_SUBDIR>")