@@ -5,7 +5,7 @@ project (OpenFHE-Python)
55set (OPENFHE_PYTHON_VERSION_MAJOR 1)
66set (OPENFHE_PYTHON_VERSION_MINOR 4)
77set (OPENFHE_PYTHON_VERSION_PATCH 0)
8- set (OPENFHE_PYTHON_VERSION_TWEAK 0 )
8+ set (OPENFHE_PYTHON_VERSION_TWEAK 1 )
99set (OPENFHE_PYTHON_VERSION ${OPENFHE_PYTHON_VERSION_MAJOR} .${OPENFHE_PYTHON_VERSION_MINOR} .${OPENFHE_PYTHON_VERSION_PATCH} .${OPENFHE_PYTHON_VERSION_TWEAK} )
1010
1111# OpenFHE version can be specified externally (-DOPENFHE_REQUIRED_VERSION=1.4.0)
@@ -74,7 +74,15 @@ pybind11_add_module(openfhe
7474 )
7575# The next line ensures that the installed openfhe module can find its shared library dependencies
7676# in the 'lib/' subdirectory relative to itself without requiring LD_LIBRARY_PATH.
77- target_link_options (openfhe PRIVATE "-Wl,-rpath=$ORIGIN/lib" "-Wl,--disable-new-dtags" )
77+ ### target_link_options(openfhe PRIVATE "-Wl,-rpath=$ORIGIN/lib" "-Wl,--disable-new-dtags")
78+ target_link_options (openfhe PRIVATE "-Wl,--enable-new-dtags" "-Wl,-rpath,\$ ORIGIN/lib" )
79+
80+ # Also set target RPATH properties (survive install/copying)
81+ set_target_properties (openfhe PROPERTIES
82+ BUILD_RPATH "\$ ORIGIN/lib"
83+ INSTALL_RPATH "\$ ORIGIN/lib"
84+ )
85+
7886
7987### Python installation
8088# Allow the user to specify the path to Python executable (if not provided, find it)
0 commit comments