Skip to content

Commit

Permalink
Set rpath correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 25, 2020
1 parent 0709a5c commit 6dd95a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ endif()
# https://stackoverflow.com/a/56201564/479532
set_target_properties(lfortran PROPERTIES RUNTIME_OUTPUT_DIRECTORY $<0:>)

set_target_properties(lfortran PROPERTIES
INSTALL_RPATH_USE_LINK_PATH TRUE
)

install(TARGETS lfortran
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION share/lfortran/lib
Expand Down

0 comments on commit 6dd95a7

Please sign in to comment.