diff --git a/lanelet2_python/CMakeLists.txt b/lanelet2_python/CMakeLists.txt index 1cdf8173..4b2aff5f 100644 --- a/lanelet2_python/CMakeLists.txt +++ b/lanelet2_python/CMakeLists.txt @@ -26,7 +26,7 @@ foreach (PROJECT_PYTHON_SOURCE_FILE ${PROJECT_PYTHON_SOURCE_FILES_SRC}) set_target_properties(${PYTHON_MODULE_NAME} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH_USE_LINK_PATH TRUE - INSTALL_RPATH "${SKBUILD_NULL_DIR}") + INSTALL_RPATH "/usr/local/lanelet2") endif () endforeach () @@ -44,6 +44,6 @@ if (DEFINED SKBUILD) endforeach () else () # Save shared library dependencies to RPATH on Unix - install(TARGETS lanelet2_core lanelet2_io lanelet2_projection lanelet2_traffic_rules lanelet2_routing lanelet2_matching DESTINATION ${SKBUILD_NULL_DIR}) + install(TARGETS lanelet2_core lanelet2_io lanelet2_projection lanelet2_traffic_rules lanelet2_routing lanelet2_matching DESTINATION "/usr/local/lanelet2") endif () endif ()