Update CMakeLists.txt

select new behavior for CMP0135 when supported by cmake so that: "CMake 3.24 and above prefers to set the timestamps of all extracted contents to the time of the extraction. This ensures that anything that depends on the extracted contents will be rebuilt whenever the URL changes."
This commit is contained in:
dodohand 2024-10-22 09:47:31 -04:00 committed by GitHub
parent df1544bcee
commit fda8e7b4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 3.13)
if(cmake_VERSION VERSION_GREATER_EQUAL "3.24")
cmake_policy(SET CMP0135 NEW)
endif()
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.15.2)