CMake: only set policy CMP0148 to OLD if version >= 3.27

Co-authored-by: 0xFFFC0000 <0xFFFC0000@proton.me>
This commit is contained in:
jeffro256 2024-01-18 21:22:03 -06:00
parent 39a698d22c
commit e7629dc46f
No known key found for this signature in database
GPG Key ID: 6F79797A6E392442
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ include(CheckCXXCompilerFlag)
include(CheckLinkerFlag) include(CheckLinkerFlag)
include(CheckLibraryExists) include(CheckLibraryExists)
include(CheckFunctionExists) include(CheckFunctionExists)
if (POLICY CMP0148)
cmake_policy(SET CMP0148 OLD) cmake_policy(SET CMP0148 OLD) # https://cmake.org/cmake/help/latest/policy/CMP0148.html
endif()
include(FindPythonInterp) include(FindPythonInterp)
if (IOS) if (IOS)