summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2023-05-21 12:07:32 (GMT)
committerCraig Scott <craig.scott@crascit.com>2023-05-23 12:39:44 (GMT)
commit8cc45e150a8b95067a5ef09a2350dcd6f3124c7a (patch)
treefff8685656410e1f002a1db05c61adfb4c597bb0 /Modules
parent1512dc43cba72c499873b39949b4f2cce772d825 (diff)
downloadCMake-8cc45e150a8b95067a5ef09a2350dcd6f3124c7a.zip
CMake-8cc45e150a8b95067a5ef09a2350dcd6f3124c7a.tar.gz
CMake-8cc45e150a8b95067a5ef09a2350dcd6f3124c7a.tar.bz2
ExternalProject: Make hg download method respect UPDATE_DISCONNECTED
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 61851aa..bac126c 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -3379,6 +3379,7 @@ function(_ep_add_update_command name)
endif()
set(work_dir ${source_dir})
set(comment "Performing update step (hg pull) for '${name}'")
+ set(comment_disconnected "Performing disconnected update step for '${name}'")
get_property(hg_tag
TARGET ${name}
@@ -3404,6 +3405,7 @@ Update to Mercurial >= 2.1.1.
${HG_EXECUTABLE} pull
COMMAND ${HG_EXECUTABLE} update ${hg_tag}
)
+ set(cmd_disconnected ${HG_EXECUTABLE} update ${hg_tag})
set(always 1)
endif()