Skip to content

Commit 6880e94

Browse files
committed
Move CMake CMP0135
1 parent 73e828a commit 6880e94

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
4-
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
5-
cmake_policy(SET CMP0135 NEW)
6-
endif()
7-
83
# Adapt compiler flags if using Conda compiler packages. Before project so they are not modified.
94
include(cmake/Conda.cmake)
105

cmake/DependenciesResolver.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Based and fetch content, it avoids using `add_subdirectory` which exposes other project
66
# targets and errors as part of this project.
77

8+
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
9+
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
10+
cmake_policy(SET CMP0135 NEW)
11+
endif()
812

913
include(FetchContent)
1014

0 commit comments

Comments
 (0)