aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-01-19 13:45:01 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-01-19 13:45:01 -0500
commit059028a30a8ae9752338a7897329fe8012a310d5 (patch)
treeaf63f1bb251e982cb05bc2ae1c09de172b68616f
parentMerge pull request #9119 (diff)
parentCMake: only set policy CMP0148 to OLD if version >= 3.27 (diff)
downloadmonero-059028a30a8ae9752338a7897329fe8012a310d5.tar.xz
Merge pull request #9126
e7629dc CMake: only set policy CMP0148 to OLD if version >= 3.27 (jeffro256)
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c35a225a..83d760c66 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,8 +40,9 @@ include(CheckCXXCompilerFlag)
include(CheckLinkerFlag)
include(CheckLibraryExists)
include(CheckFunctionExists)
-
-cmake_policy(SET CMP0148 OLD)
+if (POLICY CMP0148)
+ cmake_policy(SET CMP0148 OLD) # https://cmake.org/cmake/help/latest/policy/CMP0148.html
+endif()
include(FindPythonInterp)
if (IOS)