Skip to content

Commit

Permalink
CMAKE_BUILD_WITH_INSTALL_RPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 5, 2024
1 parent cba6875 commit dc80c6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/PyneMacros.cmake
Expand Up @@ -12,12 +12,15 @@ endmacro()

# Configure RPATH
macro(pyne_configure_rpath)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
if(APPLE)
set(RPATH "@rpath")
set(RPATH "@loader_path")
elseif(UNIX)
set(RPATH "$ORIGIN")
else()
set(RPATH OFF) # Windows
# Windows
set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
set(RPATH OFF)
endif()
endmacro()

Expand Down

0 comments on commit dc80c6a

Please sign in to comment.