Skip to content

Commit

Permalink
set(CMAKE_MACOSX_RPATH ON)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 5, 2024
1 parent b1debd7 commit 65a4006
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/quick_wheel_test.yml
Expand Up @@ -53,15 +53,6 @@ jobs:
run: |
pip install dist/pyne*.whl
- name: Check RPATH info
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: |
otool -l /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pyne/pyne_config.cpython-312-darwin.so | grep -A2 LC_RPATH
cd /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pyne/core/lib/ && ls -l
otool -l /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pyne/core/lib/libpyne.dylib
- name: Nuc data make
shell: bash -l {0}
run: |
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -228,6 +228,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 Expand Up @@ -304,6 +305,7 @@ if(ENABLE_DAGMC)
-DBUILD_MAKE_WATERTIGHT:BOOL=OFF
-DBUILD_OVERLAP_CHECK:BOOL=OFF
-DBUILD_TESTS:BOOL=OFF
-DCMAKE_MACOSX_RPATH:BOOL=ON
BUILD_BYPRODUCTS "${DAGMC_ROOT}/lib/libdagmc${CMAKE_SHARED_LIBRARY_SUFFIX}"
)
set(DAGMC_INCLUDE_DIRS "${DAGMC_ROOT}/include")
Expand Down Expand Up @@ -386,6 +388,7 @@ if(ENABLE_LAPACK)
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS:BOOL=ON
-DUSE_OPTIMIZED_BLAS:BOOL=ON
-DCMAKE_MACOSX_RPATH:BOOL=ON
BUILD_BYPRODUCTS "${LAPACK_ROOT}/lib/liblapack${CMAKE_SHARED_LIBRARY_SUFFIX}"
)
set(LAPACK_INCLUDE_DIRS "${LAPACK_ROOT}/include")
Expand Down
1 change: 1 addition & 0 deletions cmake/PyneMacros.cmake
Expand Up @@ -13,6 +13,7 @@ endmacro()
# Configure RPATH
macro(pyne_configure_rpath)
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
set(RPATH "@loader_path")
elseif(UNIX)
set(RPATH "$ORIGIN")
Expand Down

0 comments on commit 65a4006

Please sign in to comment.