ExternalProject: Make hg download method respect UPDATE_DISCONNECTED

This commit is contained in:
Craig Scott
2023-05-21 22:07:32 +10:00
parent 1512dc43cb
commit 8cc45e150a

View File

@@ -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()