]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: set CMP0135 policy 47829/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 01:51:02 +0000 (09:51 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 01:56:47 +0000 (09:56 +0800)
commit8103d11bd8312cf993f32f54e6173e382e83a5fa
treecf1d4bb12f410919216f852e220199b926763f9f
parent591e0c6195ab769e5fc96075ce48cb7c2a26407a
cmake: set CMP0135 policy

so the `DOWNLOAD_EXTRACT_TIMESTAMP` property of
`ExternalProject_Add()` command is set by default on CMake v3.24 and up.
it helps to set the a more accurate timestamp for the downloaded
content, hence the targets depending on the extracted content can be
rebuilt if the URL changes.

see also https://cmake.org/cmake/help/latest/policy/CMP0135.html

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt