summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 044f43c20c..e9e5df1894 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,10 +67,8 @@ if (POLICY CMP0054)
cmake_policy(SET CMP0054 OLD)
endif()
-# Set old behaviour for MACOSX_RPATH
-if (POLICY CMP0042)
- cmake_policy(SET CMP0042 OLD)
-endif()
+# See https://cmake.org/Wiki/CMake_RPATH_handling
+set(MACOSX_RPATH ON)
# If our target platform is enforced by our generator, set
# WIRESHARK_TARGET_PLATFORM accordingly. Otherwise use