From 4bbae8abf56e4b911ed89ac80061279558931a45 Mon Sep 17 00:00:00 2001 From: Mark Messner Date: Tue, 19 Nov 2024 14:33:14 -0600 Subject: [PATCH] With great fear... --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a55d1d88..64342405 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,9 @@ endif() ### PYTHON BINDINGS ### # Do some tricky things for the python package option(PYTHON_PACKAGE "Generate a build for a python package, should be OFF except in setupy.py" OFF) +if (PYTHON_PACKAGE) + set(CMAKE_INSTALL_RPATH "$ORIGIN") +endif() option(WRAP_PYTHON "Generate a pybind11 wrapper" OFF) if (WRAP_PYTHON)