cmake(cpp): Fix example RPATH
This commit is contained in:
@@ -6,9 +6,9 @@ project(ortools_examples)
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_INSTALL_RPATH
|
||||
"@loader_path/../..;@loader_path/../lib;@loader_path")
|
||||
"@loader_path/../..;@loader_path/../${CMAKE_INSTALL_LIBDIR};@loader_path")
|
||||
else()
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN/../../:$ORIGIN/../lib:$ORIGIN/")
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN/../../:$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:$ORIGIN/")
|
||||
endif()
|
||||
|
||||
get_filename_component(PARENT_SOURCE_DIR ${PROJECT_SOURCE_DIR} DIRECTORY)
|
||||
|
||||
Reference in New Issue
Block a user