Skip to content

Commit 5610d4e

Browse files
Merge pull request #15 from OpenTimelineIO/rpath_fix
Setup CMake RPATH options
2 parents 47b3cdc + 87f6e7d commit 5610d4e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ if(APPLE)
3131
endif()
3232
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
3333

34+
if(WIN32)
35+
elseif(APPLE)
36+
set(CMAKE_SKIP_BUILD_RPATH FALSE)
37+
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
38+
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
39+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
40+
else()
41+
set(CMAKE_SKIP_BUILD_RPATH FALSE)
42+
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
43+
set(CMAKE_INSTALL_RPATH "../lib")
44+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
45+
endif()
46+
3447
set(TOUCAN_PLUGINS
3548
toucanColorSpace
3649
toucanDraw

0 commit comments

Comments
 (0)