Sfoglia il codice sorgente

ExternalProject: Make hg download method respect UPDATE_DISCONNECTED

Craig Scott 2 anni fa
parent
commit
8cc45e150a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Modules/ExternalProject.cmake

+ 2 - 0
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()