Skip to content

Commit ee15d00

Browse files
authored
Fix CMake CMP0135 warnings for ExternalProject downloads (#5083)
Set cmake_policy(SET CMP0135 NEW) so that ExternalProject_Add URL downloads use extraction-time timestamps instead of archive timestamps. This silences the dev warnings from gbenchmark and googletest downloads. Fixes #4852
1 parent 6eed3c4 commit ee15d00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ project(ponyclibs VERSION ${PONYC_PROJECT_VERSION} LANGUAGES C CXX)
55

66
include(ExternalProject)
77

8+
if(POLICY CMP0135)
9+
cmake_policy(SET CMP0135 NEW)
10+
endif()
11+
812
if(NOT DEFINED PONYC_LIBS_BUILD_TYPE)
913
set(PONYC_LIBS_BUILD_TYPE Release)
1014
endif()

0 commit comments

Comments
 (0)