From 2e478adcfc4449cef09c546da0fc6be177462e31 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 18 Oct 2023 11:24:11 +0200 Subject: [PATCH] adds rpath setting to install process --- src/CMakeLists.txt | 4 +++- tgc-iss/dbt-rise-tgc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7061602..778f9bc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,8 +10,9 @@ include(flink) find_package(Boost COMPONENTS program_options thread REQUIRED) ############################################################################### -# SiFive +# TGC ############################################################################### +set(CMAKE_INSTALL_RPATH $ORIGIN/../${CMAKE_INSTALL_LIBDIR}) add_executable(${PROJECT_NAME} sc_main.cpp CLIParser.cpp @@ -26,6 +27,7 @@ if(TARGET Boost::program_options) else() target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY}) endif() + install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # static lib RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # binaries diff --git a/tgc-iss/dbt-rise-tgc b/tgc-iss/dbt-rise-tgc index ae4322c..aa12e93 160000 --- a/tgc-iss/dbt-rise-tgc +++ b/tgc-iss/dbt-rise-tgc @@ -1 +1 @@ -Subproject commit ae4322c1b967e7d9e98ff30a3cb7bd94476e9ada +Subproject commit aa12e93177eadbf5e4131a9768056c1b14e7fa8c