diff --git a/CMakeLists.txt b/CMakeLists.txt index 69e39be6de4..25b389e6a30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,9 @@ include(CheckFunctionExists) if (POLICY CMP0148) cmake_policy(SET CMP0148 OLD) # https://cmake.org/cmake/help/latest/policy/CMP0148.html endif() +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() include(FindPythonInterp) if (IOS)