From 9cccd87e793ae5638ba7ab13d26ce4aadade5510 Mon Sep 17 00:00:00 2001 From: Ying Xiong Date: Mon, 6 Apr 2015 16:37:06 -0400 Subject: [PATCH] Silence cmake 3.0+ warnings about MACOSX_RPATH --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 746faac20..a25987cdb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,11 @@ 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) +endif() + # must go before the project command set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE) if(DEFINED CMAKE_BUILD_TYPE)