Skip to content

Commit a0ad78d

Browse files
committed
Changes to RPATH handling for OSX
1 parent fa4fcd4 commit a0ad78d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ include(GNUInstallDirs)
5353

5454
set(CMAKE_SKIP_BUILD_RPATH FALSE)
5555
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
56-
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
56+
if(NOT APPLE)
57+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
58+
endif()
5759
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
5860

5961
add_subdirectory(src)

0 commit comments

Comments
 (0)