Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

COMP: Set DOWNLOAD_EXTRACT_TIMESTAMP to TRUE in wrapping modules #3709

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Wrapping/Generators/CastXML/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ else()
if(ITK_BINARY_DIR)
itk_download_attempt_check(CastXML)
endif()
cmake_policy(PUSH)
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()
ExternalProject_Add(castxml
URL ${_castxml_url}
URL_HASH SHA512=${_castxml_hash}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/castxml-prefix/src/castxml" "${CMAKE_CURRENT_BINARY_DIR}/castxml"
)
cmake_policy(POP)
set(CASTXML_EXECUTABLE ${castxml_ep})
set(CASTXML_EXECUTABLE ${castxml_ep} CACHE FILEPATH "castxml executable." FORCE)
# Build from source
Expand Down
12 changes: 12 additions & 0 deletions Wrapping/Generators/SwigInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ else()
install
)
endif()
if(${CMAKE_VERSION} VERSION_LESS 3.24)
set(download_extract_timestamp_flag)
else()
set(download_extract_timestamp_flag DOWNLOAD_EXTRACT_TIMESTAMP TRUE)
endif()
set(pcre_hash "abac4c4f9df9e61d7d7761a9c50843882611752e1df0842a54318f358c28f5953025eba2d78997d21ee690756b56cc9f1c04a5ed591dd60654cc78ba16d9ecfb")
ExternalProject_Add(PCRE
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${pcre_hash}/download"
Expand All @@ -148,6 +153,7 @@ else()
--prefix=${CMAKE_CURRENT_BINARY_DIR}/PCRE
--enable-shared=no
${extra_external_project_commands}
${download_extract_timestamp_flag}
)

# swig uses bison find it by cmake and pass it down
Expand Down Expand Up @@ -240,13 +246,19 @@ message(STATUS \"Swig configure successfully completed.\")
)
endif()

if(${CMAKE_VERSION} VERSION_LESS 3.24)
set(download_extract_timestamp_flag)
else()
set(download_extract_timestamp_flag DOWNLOAD_EXTRACT_TIMESTAMP TRUE)
endif()
ExternalProject_Add(swig
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${swig_hash}/download"
URL_HASH SHA512=${swig_hash}
CONFIGURE_COMMAND
${extra_swig_configure_env} ${CMAKE_COMMAND} -P "${_swig_configure_script}"
${extra_external_project_commands}
DEPENDS PCRE
${download_extract_timestamp_flag}
)
endif()

Expand Down