Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Set
DOWNLOAD_EXTRACT_TIMESTAMP
to TRUE
in wrapping modules
Set `DOWNLOAD_EXTRACT_TIMESTAMP` to `TRUE`: the timestamps of the extracted files will reflect the timestamps in the archive. Configure/autoconf based projects like SWIG and PCRE have timestamped files for their auto configuration dependencies. Thus, they depend on the timestamps of the extracted files, and the external projects require setting `DOWNLOAD_EXTRACT_TIMESTAMP` to `TRUE` to build robustly. Set the `CMP0135` policy to `NEW` for the CastXML CMake-based project. Suppresses CMake warnings in wrapping modules. Fixes: ``` CMake Warning (dev) at /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) Wrapping/Generators/SwigInterface/CMakeLists.txt:142 (ExternalProject_Add) This warning is for project developers. Use -Wno-dev to suppress it. -- Found BISON: /usr/bin/bison (found version "3.5.1") CMake Warning (dev) at /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) Wrapping/Generators/SwigInterface/CMakeLists.txt:243 (ExternalProject_Add) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake-3.24/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) Wrapping/Generators/CastXML/CMakeLists.txt:63 (ExternalProject_Add) This warning is for project developers. Use -Wno-dev to suppress it. ``` raised for example in: https://open.cdash.org/build/8245525/configure Related documentation: https://cmake.org/cmake/help/latest/module/ExternalProject.html?highlight=download_extract_timestamp https://cmake.org/cmake/help/latest/policy/CMP0135.html
- Loading branch information