Skip to content

Commit

Permalink
CMake: only set policy CMP0148 to OLD if version >= 3.27
Browse files Browse the repository at this point in the history
Co-authored-by: 0xFFFC0000 <[email protected]>
  • Loading branch information
jeffro256 and 0xFFFC0000 committed Jan 19, 2024
1 parent 39a698d commit e7629dc
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 e7629dc

Please sign in to comment.