From b5438c3ae4c09705a04974814cfd7b3fcf6cec00 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 3 Apr 2016 11:34:08 +1200 Subject: [PATCH] Fix CMake warning when compiling on OSX --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5edf93c..72e22179 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,8 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin") # Platform-dependent implementation of system.h set(SYSTEM_CPP_MODULE "system_macosx.cpp") + # To avoid CMake warning + set(CMAKE_MACOSX_RPATH 1) else() message(STATUS "Build for other system") set(PLATFORM_WINDOWS 0)