diff --git a/CMakeLists.txt b/CMakeLists.txt index eaade08..ba04c8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,4 +49,7 @@ if(DEFINED MCPI_LIB_DIR) install(TARGETS runtime DESTINATION "${MCPI_LIB_DIR}") # License install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" DESTINATION "${MCPI_LEGAL_DIR}/${PROJECT_NAME}") + # RPath + set_target_properties(runtime PROPERTIES INSTALL_RPATH "$ORIGIN") + target_link_options(runtime PRIVATE "LINKER:--disable-new-dtags") endif() \ No newline at end of file