From de3a44b7e713b2ce18a38734b87abefd897b5c8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Fri, 21 Sep 2018 20:55:05 +0200
Subject: [PATCH] Fixed cmake RUNPATH error.

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8784170f8a..e7517f9b93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,10 @@ else()
     set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Release/bin )
 endif()
 
+# This is to avoid error "file RPATH_CHANGE could not write new RPATH" when 
+# LIBRARY_OUTPUT_PATH is different from RUNPATH
+set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
+
 # check if the compiler is good enough
 if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
    # GCC 5.0 is the first release with full C++11 support (due to libstdc++)
-- 
GitLab