-
-
Notifications
You must be signed in to change notification settings - Fork 159
Fix building with -DLOVE_SYSTEM_LUA
#856
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
Conversation
Previously the libdirs were not properly set causing the actual lua libs to be unable to be found at link time
|
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} |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does work though
Previously the libdirs were not properly set causing the actual lua libs to be unable to be found at link time