Skip to content

Commit

Permalink
add to swmm5 rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
karosc committed Sep 10, 2023
1 parent ed5b348 commit 9c7195d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solver/CMakeLists.txt
Expand Up @@ -99,6 +99,12 @@ file(COPY ${CMAKE_CURRENT_BINARY_DIR}/toolkit_export.h
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/include
)

# add library directory to rpath incase omp bundled
if(APPLE)
set(LIB_ROOT, "@loader_path")
else()
set(LIB_ROOT, "$ORIGIN")
endif()

set_target_properties(swmm5
PROPERTIES
Expand Down

0 comments on commit 9c7195d

Please sign in to comment.