From 2adeb9969f2ccec30a3746286a4dd152aa657706 Mon Sep 17 00:00:00 2001 From: Graham Bloice Date: Tue, 2 Jun 2015 22:11:56 +0100 Subject: [PATCH] Fix OSX CMake warnings Set the CMake policy for CMP0042 to old Change-Id: I2b71e1d8d9b9b90ede11df1a7874a2360c3032c5 Reviewed-on: https://code.wireshark.org/review/8740 Reviewed-by: Graham Bloice Petri-Dish: Graham Bloice Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1d963ac92..3ed03149bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,11 @@ if (POLICY CMP0054) cmake_policy(SET CMP0054 OLD) endif() +# Set old behaviour for MACOSX_RPATH +if (POLICY CMP0042) + cmake_policy(SET CMP0042 OLD) +endif() + # If our target platform is enforced by our generator, set # WIRESHARK_TARGET_PLATFORM accordingly. Otherwise use # %WIRESHARK_TARGET_PLATFORM%.