diff options
author | Craig Scott <craig.scott@crascit.com> | 2023-05-23 12:37:20 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2023-05-23 12:39:44 (GMT) |
commit | 1512dc43cba72c499873b39949b4f2cce772d825 (patch) | |
tree | 8d454ef1e89e19483e375c42d09c1d2727e6b59c /CompileFlags.cmake | |
parent | 1d29cf37a19880e8579de6b43e0e291aaaa494f3 (diff) | |
download | CMake-1512dc43cba72c499873b39949b4f2cce772d825.zip CMake-1512dc43cba72c499873b39949b4f2cce772d825.tar.gz CMake-1512dc43cba72c499873b39949b4f2cce772d825.tar.bz2 |
ExternalProject: Avoid reconfigure when updates are disconnected
When UPDATE_DISCONNECTED is true, create separate update_disconnected
and patch_disconnected targets which have ALWAYS set to false.
Make the configure step depend on patch_disconnected in this case too.
This ensures the configure, build, install and test steps are not
executed unnecessarily when updates are disconnected.
Make the update and patch commands depend on the details of those
steps. This ensures they are re-executed when any of those details
change, even if updates are disconnected.
Allow updates to occur even if UPDATE_DISCONNECTED is true, but don't
contact the remote in that case. If asked to update to a ref that isn't known
locally, that is now detected and causes a fatal error when updates are
disconnected. Previously, the build would have silently and erroneously
continued to use the old ref.
Fixes: #16419, #19703, #21146
Diffstat (limited to 'CompileFlags.cmake')
0 files changed, 0 insertions, 0 deletions