Merge pull request #9126

e7629dc CMake: only set policy CMP0148 to OLD if version >= 3.27 (jeffro256)
This commit is contained in:
luigi1111 2024-01-19 13:45:01 -05:00
commit 059028a30a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

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)