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

Install Prefix suggestion #462

Open
Pickle opened this issue Jun 23, 2024 · 0 comments
Open

Install Prefix suggestion #462

Pickle opened this issue Jun 23, 2024 · 0 comments

Comments

@Pickle
Copy link

Pickle commented Jun 23, 2024

I was cross compiling the library and wanted it to install to the toolchain. The hardcoded paths didnt work. Also not sure why the built lib is being copied to its own folder beneath the lib folder.
I came up with this change and it worked. Maybe something like this is proper for all systems?

     install(TARGETS GL
       LIBRARY
-      DESTINATION "/usr/lib/gl4es/"
+      DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
     )
     install(FILES "../include/gl4esinit.h" "../include/gl4eshint.h"
-      DESTINATION "/usr/include/gl4es/"
+      DESTINATION "${CMAKE_INSTALL_PREFIX}/include/gl4es/"
     )

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

No branches or pull requests

1 participant