Skip to content

Commit

Permalink
macos rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Dec 17, 2024
1 parent 1782bbd commit 5dd3516
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ message("Python site-packages directory: ${Python_SITELIB}")
if(DEFINED PY_INSTALL)
# Note the following setting is only for pyenv and not for conda
# TODO: Add support for conda
set(SCIPY_OPENBLAS32_RUNTIME_LIB_PATH "$ORIGIN/../scipy_openblas32/lib")
if(APPLE)
set(SCIPY_OPENBLAS32_RUNTIME_LIB_PATH "@loader_path/../scipy_openblas32/lib")
else()
set(SCIPY_OPENBLAS32_RUNTIME_LIB_PATH "$ORIGIN/../scipy_openblas32/lib")
endif()
else()
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindSCIPY_OPENBLAS32.cmake")
if(NOT DEFINED SCIPY_OPENBLAS32_LIB_PATH AND NOT EXISTS ${SCIPY_OPENBLAS32_LIB_PATH})
Expand Down

0 comments on commit 5dd3516

Please sign in to comment.