From f5306a0740115af930780b38597fdfb50cc21e58 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 20 Jun 2016 17:19:13 +0300 Subject: [PATCH] cmake: change CMP0042 policy value --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18887f471..11a64080c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,9 +81,8 @@ if(POLICY CMP0026) cmake_policy(SET CMP0026 OLD) endif() -if (POLICY CMP0042) - # silence cmake 3.0+ warnings about MACOSX_RPATH - cmake_policy(SET CMP0042 OLD) +if(POLICY CMP0042) + cmake_policy(SET CMP0042 NEW) endif() include(cmake/OpenCVUtils.cmake)