Skip to content

Commit

Permalink
Merge pull request #75 from stigrj/release/0.2
Browse files Browse the repository at this point in the history
Cherry-pick path fix from master
  • Loading branch information
robertodr authored Oct 14, 2021
2 parents c897383 + 44a20b9 commit b9c6c0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vampyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ target_link_libraries(_vampyr

file(RELATIVE_PATH _rel ${CMAKE_INSTALL_PREFIX}/${PYMOD_INSTALL_FULLDIR} ${CMAKE_INSTALL_PREFIX})
if(APPLE)
set(_RPATH "@loader_path/${_rel};@loader_path/${CMAKE_INSTALL_LIBDIR}")
set(_RPATH "@loader_path/${_rel}/lib;@loader_path/${CMAKE_INSTALL_LIBDIR}")
else()
set(_RPATH "\$ORIGIN/${_rel};\$ORIGIN/${CMAKE_INSTALL_LIBDIR}")
set(_RPATH "\$ORIGIN/${_rel}/lib;\$ORIGIN/${CMAKE_INSTALL_LIBDIR}")
endif()

file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR})
Expand All @@ -48,7 +48,7 @@ set_target_properties(_vampyr
MACOSX_RPATH ON
SKIP_BUILD_RPATH OFF
BUILD_WITH_INSTALL_RPATH OFF
INSTALL_RPATH "${_RPATH}lib"
INSTALL_RPATH "${_RPATH}"
INSTALL_RPATH_USE_LINK_PATH ON
PREFIX "${PYTHON_MODULE_PREFIX}"
SUFFIX "${PYTHON_MODULE_EXTENSION}"
Expand Down

0 comments on commit b9c6c0b

Please sign in to comment.