Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2023
1 parent 8ccec49 commit d0281e5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/lmp/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,16 @@ if(DEFINED LAMMPS_SOURCE_ROOT OR DEFINED LAMMPS_VERSION)
${libname} PRIVATE ${LAMMPS_SOURCE_ROOT}/src/EXTRA-FIX) # for ttm
endif()
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
set_target_properties(${libname} PROPERTIES LINK_FLAGS
"-Wl,-undefined,dynamic_lookup"
INSTALL_RPATH
"@loader_path:${TensorFlow_LIBRARY_PATH}:@loader_path/.."
)
set_target_properties(
${libname}
PROPERTIES LINK_FLAGS "-Wl,-undefined,dynamic_lookup"
INSTALL_RPATH
"@loader_path:${TensorFlow_LIBRARY_PATH}:@loader_path/..")
else()
set_target_properties(
${libname} PROPERTIES INSTALL_RPATH "$ORIGIN;${TensorFlow_LIBRARY_PATH};$ORIGIN/.."
LINK_FLAGS "-rdynamic")
${libname}
PROPERTIES INSTALL_RPATH "$ORIGIN;${TensorFlow_LIBRARY_PATH};$ORIGIN/.."
LINK_FLAGS "-rdynamic")
endif()
target_compile_definitions(
${libname}
Expand Down

0 comments on commit d0281e5

Please sign in to comment.