Skip to content

Commit 1c6652d

Browse files
Copilotdzenanz
andcommitted
Move ITK_FREEZE_REMOTE_MODULES option to ITKModuleRemote.cmake
Co-authored-by: dzenanz <1792121+dzenanz@users.noreply.github.com>
1 parent d2bdd85 commit 1c6652d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

CMake/ITKDownloadSetup.cmake

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ option(
1313
)
1414
mark_as_advanced(ITK_FORBID_DOWNLOADS)
1515

16-
#-----------------------------------------------------------------------------
17-
# Freeze remote module revisions to prevent git updates. This is useful
18-
# during development when working with modified remote modules to prevent
19-
# losing local changes during reconfiguration.
20-
#
21-
option(
22-
ITK_FREEZE_REMOTE_MODULES
23-
"Do not update remote modules to new revisions during reconfiguration"
24-
OFF
25-
)
26-
mark_as_advanced(ITK_FREEZE_REMOTE_MODULES)
27-
2816
macro(itk_download_attempt_check _name)
2917
if(ITK_FORBID_DOWNLOADS)
3018
message(

CMake/ITKModuleRemote.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Function to fetch remote modules.
22

3+
#-----------------------------------------------------------------------------
4+
# Freeze remote module revisions to prevent git updates. This is useful
5+
# during development when working with modified remote modules to prevent
6+
# losing local changes during reconfiguration.
7+
#
8+
option(
9+
ITK_FREEZE_REMOTE_MODULES
10+
"Do not update remote modules to new revisions during reconfiguration"
11+
OFF
12+
)
13+
mark_as_advanced(ITK_FREEZE_REMOTE_MODULES)
14+
315
# Helper to perform the initial git clone and checkout.
416
function(_git_clone git_executable git_repository git_tag module_dir)
517
execute_process(

0 commit comments

Comments
 (0)