Skip to content

Commit

Permalink
Merge pull request #10864 from Holzhaus/cmake-download-timestamp-warning
Browse files Browse the repository at this point in the history
[2.3.x] build(cmake): Fix CMake warning regarding extracted archive timestamps
  • Loading branch information
daschuer authored Sep 4, 2022
2 parents 55a8272 + fe4cba6 commit 87d6906
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()

# Set the timestamp of extracted files to the time of the extraction instead of
# the archived timestamp to make sure that dependent files are rebuilt if the
# URL changes.
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

# Check if any relevant env vars were set from the build env scripts
if(DEFINED ENV{X_VCPKG_APPLOCAL_DEPS_INSTALL} AND NOT DEFINED X_VCPKG_APPLOCAL_DEPS_INSTALL)
set(X_VCPKG_APPLOCAL_DEPS_INSTALL "$ENV{X_VCPKG_APPLOCAL_DEPS_INSTALL}" CACHE BOOL "")
Expand Down

0 comments on commit 87d6906

Please sign in to comment.