Skip to content

Commit

Permalink
CMAKE_MACOSX_RPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 17, 2024
1 parent fd470a7 commit 4ba512d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ if(ENABLE_MOAB)
-DEIGEN3_DIR:PATH=${EIGEN3_INCLUDE_DIRS}
-DENABLE_BLASLAPACK:BOOL=OFF
-DENABLE_FORTRAN:BOOL=OFF
-DCMAKE_MACOSX_RPATH:BOOL=ON
DOWNLOAD_EXTRACT_TIMESTAMP true
BUILD_BYPRODUCTS "${MOAB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libMOAB${CMAKE_SHARED_LIBRARY_SUFFIX}"
)
Expand Down
1 change: 1 addition & 0 deletions cmake/PyneMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ endmacro()
macro(pyne_configure_rpath)
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
set(RPATH "@loader_path")
elseif(UNIX)
set(RPATH "$ORIGIN")
Expand Down

0 comments on commit 4ba512d

Please sign in to comment.