Skip to content

Commit

Permalink
change rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNSD committed Jul 3, 2024
1 parent 0d1f68f commit 31dd038
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ target_include_directories(metaltranslate PRIVATE
# Link third-party libraries to the metaltranslate library
target_link_libraries(metaltranslate PRIVATE ctranslate2 OpenNMTTokenizer)

# Ensure rpath is set to include the directory where dependencies will be located
set(CMAKE_INSTALL_RPATH "@loader_path/")

set_target_properties(metaltranslate PROPERTIES
CXX_EXTENSIONS NO
CXX_STANDARD 17
Expand Down

0 comments on commit 31dd038

Please sign in to comment.