ExternalProject: Move existing step scripts to separate subdirectory

This is in preparation for moving more inline content to separate
scripts as well. Having them in a separate subdirectory is consistent
with other modules and will make them easier to find and work with.
This commit is contained in:
Craig Scott
2022-01-22 16:19:07 +11:00
parent 91de0ff599
commit 036517fe0b
5 changed files with 8 additions and 8 deletions
+8 -8
View File
@@ -1443,7 +1443,7 @@ function(_ep_write_gitupdate_script script_filename git_EXECUTABLE git_tag git_r
endif() endif()
configure_file( configure_file(
"${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject-gitupdate.cmake.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/gitupdate.cmake.in"
"${script_filename}" "${script_filename}"
@ONLY @ONLY
) )
@@ -1553,7 +1553,7 @@ function(_ep_write_downloadfile_script script_filename REMOTE LOCAL timeout inac
# * USERPWD_ARGS # * USERPWD_ARGS
# * HTTP_HEADERS_ARGS # * HTTP_HEADERS_ARGS
configure_file( configure_file(
"${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject-download.cmake.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/download.cmake.in"
"${script_filename}" "${script_filename}"
@ONLY @ONLY
) )
@@ -1574,7 +1574,7 @@ function(_ep_write_verifyfile_script script_filename LOCAL hash)
# * EXPECT_VALUE # * EXPECT_VALUE
# * LOCAL # * LOCAL
configure_file( configure_file(
"${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject-verify.cmake.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/verify.cmake.in"
"${script_filename}" "${script_filename}"
@ONLY @ONLY
) )
@@ -2613,7 +2613,7 @@ function(_ep_add_download_command name)
set(module ${cvs_module}) set(module ${cvs_module})
set(tag ${cvs_tag}) set(tag ${cvs_tag})
configure_file( configure_file(
"${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/RepositoryInfo.txt.in"
"${stamp_dir}/${name}-cvsinfo.txt" "${stamp_dir}/${name}-cvsinfo.txt"
@ONLY @ONLY
) )
@@ -2638,7 +2638,7 @@ function(_ep_add_download_command name)
set(module) set(module)
set(tag ${svn_revision}) set(tag ${svn_revision})
configure_file( configure_file(
"${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/RepositoryInfo.txt.in"
"${stamp_dir}/${name}-svninfo.txt" "${stamp_dir}/${name}-svninfo.txt"
@ONLY @ONLY
) )
@@ -2714,7 +2714,7 @@ function(_ep_add_download_command name)
set(module) set(module)
set(tag ${git_remote_name}) set(tag ${git_remote_name})
configure_file( configure_file(
"${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/RepositoryInfo.txt.in"
"${stamp_dir}/${name}-gitinfo.txt" "${stamp_dir}/${name}-gitinfo.txt"
@ONLY @ONLY
) )
@@ -2754,7 +2754,7 @@ function(_ep_add_download_command name)
set(module) set(module)
set(tag) set(tag)
configure_file( configure_file(
"${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/RepositoryInfo.txt.in"
"${stamp_dir}/${name}-hginfo.txt" "${stamp_dir}/${name}-hginfo.txt"
@ONLY @ONLY
) )
@@ -2795,7 +2795,7 @@ function(_ep_add_download_command name)
set(module "${url}") set(module "${url}")
set(tag "${hash}") set(tag "${hash}")
configure_file( configure_file(
"${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/ExternalProject/RepositoryInfo.txt.in"
"${stamp_dir}/${name}-urlinfo.txt" "${stamp_dir}/${name}-urlinfo.txt"
@ONLY @ONLY
) )