Skip to content

Conversation

@Frityet
Copy link

@Frityet Frityet commented Mar 13, 2025

Previously the libdirs were not properly set causing the actual lua libs to be unable to be found at link time

Previously the libdirs were not properly set causing the actual lua libs to be unable to be found at link time
@Frityet
Copy link
Author

Frityet commented Mar 13, 2025

accidental regression as I based this off the 0.18.0 cmakelists.txt, will fix


target_link_directories(lovr PRIVATE
${LOVR_LUA_LIBDIR}
${LOVR_GLFW_LIBDIR}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add OpenXR, for completeness. It may be more convenient to maintain a single list of all the library dirs as well, like LOVR_LIBRARY_DIRS.

MACOSX_RPATH TRUE
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "@executable_path"
INSTALL_RPATH "@executable_path;@executable_path/../lib"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this added to rpath?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if lovr is installed to /usr/local/bin then libraries will be in /usr/local/lib, etc

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installing to a system-wide location like this isn't supported right now

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does work though

@bjornbytes bjornbytes closed this Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants