Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ogre2: retain CMAKE_INSTALL_RPATH values #909

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ogre2/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ set_property(
target_compile_definitions(${ogre2_target}
PRIVATE OGRE_IGNORE_UNKNOWN_DEBUG)

# Add OGRE2_LIBRARY_DIRS to INSTALL_RPATH
# Append to a copy of CMAKE_INSTALL_RPATH since that is the default
set(ogre2_target_install_rpath ${CMAKE_INSTALL_RPATH})
list(APPEND ogre2_target_install_rpath ${OGRE2_LIBRARY_DIRS})
set_property(
TARGET ${ogre2_target}
PROPERTY INSTALL_RPATH
${OGRE2_LIBRARY_DIRS}
${ogre2_target_install_rpath}
)

target_include_directories(${ogre2_target}
Expand Down