We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d887a07 commit 4966c12Copy full SHA for 4966c12
CMakeLists.txt
@@ -1,5 +1,14 @@
1
cmake_minimum_required(VERSION 3.14)
2
-cmake_policy(SET CMP0095 OLD) # RPATH escaping
+
3
+# RPATH escaping (only in old CMake versions)
4
+if (CMAKE_VERSION VERSION_LESS "3.24.0")
5
+ cmake_policy(SET CMP0095 OLD)
6
+endif()
7
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
12
13
# Adapt compiler flags if using Conda compiler packages. Before project so they are not modified.
14
include(cmake/Conda.cmake)
0 commit comments