Skip to content

Commit f3a09f9

Browse files
authored
Merge pull request #57 from IntelPython/extend-install-path
Extend INSTALL_RPATH to include parent directories
2 parents 77317c0 + b43b817 commit f3a09f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ target_link_options(_ufuncs PRIVATE ${_linker_options})
129129
target_link_libraries(_ufuncs PRIVATE mkl_umath_loops)
130130
set_target_properties(_ufuncs PROPERTIES C_STANDARD 99)
131131
if (UNIX)
132-
set_target_properties(_ufuncs PROPERTIES INSTALL_RPATH "$ORIGIN")
132+
set_target_properties(_ufuncs PROPERTIES INSTALL_RPATH "$ORIGIN/../..;$ORIGIN/../../..;$ORIGIN")
133133
endif()
134134
install(TARGETS _ufuncs LIBRARY DESTINATION mkl_umath)
135135

@@ -140,6 +140,6 @@ target_compile_definitions(_patch PUBLIC NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSI
140140
target_link_libraries(_patch PRIVATE mkl_umath_loops)
141141
set_target_properties(_patch PROPERTIES C_STANDARD 99)
142142
if (UNIX)
143-
set_target_properties(_patch PROPERTIES INSTALL_RPATH "$ORIGIN")
143+
set_target_properties(_patch PROPERTIES INSTALL_RPATH "$ORIGIN/../..;$ORIGIN/../../..;$ORIGIN")
144144
endif()
145145
install(TARGETS _patch LIBRARY DESTINATION mkl_umath)

0 commit comments

Comments
 (0)