Skip to content

Commit

Permalink
Merge pull request #9126
Browse files Browse the repository at this point in the history
e7629dc CMake: only set policy CMP0148 to OLD if version >= 3.27 (jeffro256)
  • Loading branch information
luigi1111 committed Jan 19, 2024
2 parents 39a698d + e7629dc commit 059028a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 059028a

Please sign in to comment.