From: Markus Blatt <markus@dr-blatt.de>
Date: Tue, 1 Nov 2022 22:37:47 +0100
Subject: Use SKIP_BUILD_RPATH for python lib of simulators

---
 python/simulators/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/simulators/CMakeLists.txt b/python/simulators/CMakeLists.txt
index f900a8b..5f6e3d4 100644
--- a/python/simulators/CMakeLists.txt
+++ b/python/simulators/CMakeLists.txt
@@ -34,7 +34,8 @@ pybind11_add_module(simulators ${PYBIND11_SYSTEM}
   ${PYTHON_DOCSTRINGS_GENERATED_HPP}  # Include the generated .hpp as a source file
   )
 
-set_target_properties( simulators PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PYTHON_OPM_SIMULATORS_PACKAGE_PATH} )
+set_target_properties( simulators PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PYTHON_OPM_SIMULATORS_PACKAGE_PATH}
+                                             SKIP_BUILD_RPATH TRUE )
 
 target_link_libraries( simulators PRIVATE opmsimulators )
 # Add the binary (build) directory to the include directories for the target
