Skip to content
Snippets Groups Projects
Commit eea99af9 authored by Christos Tsolakis's avatar Christos Tsolakis
Browse files

cmake: set install RPATH for catalyst_replay

Otherwise, catalyst_replay cannot find libcatalyst.so when installed
parent 8800ee92
No related branches found
No related tags found
1 merge request!116cmake: Install catalyst_replay executable
Pipeline #414536 passed
if (UNIX AND NOT APPLE)
list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN/../${CATALYST_INSTALL_LIBRARY_DIR}")
endif ()
add_executable(catalyst_replay catalyst_replay.cpp)
target_link_libraries(catalyst_replay PRIVATE catalyst)
set_target_properties(catalyst_replay PROPERTIES
BUILD_RPATH_USE_ORIGIN TRUE)
if(CATALYST_USE_MPI)
target_link_libraries(catalyst_replay PRIVATE MPI::MPI_C)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment