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 <graham.bloice@trihedral.com>
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Graham Bloice 2015-06-02 22:11:56 +01:00 committed by Anders Broman
parent ec3f923e3e
commit 2adeb9969f
1 changed files with 5 additions and 0 deletions

View File

@ -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%.