diff --git a/CMakeLists.txt b/CMakeLists.txt index 59f6fd02d6..0ed2cc0de7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,10 @@ if(POLICY CMP0067) cmake_policy(SET CMP0067 NEW) endif() +if(POLICY CMP0068) + cmake_policy(SET CMP0068 NEW) # CMake 3.9+: `RPATH` settings on macOS do not affect `install_name`. +endif() + include(cmake/OpenCVUtils.cmake) ocv_cmake_reset_hooks() ocv_check_environment_variables(OPENCV_CMAKE_HOOKS_DIR)