gl4es icon indicating copy to clipboard operation
gl4es copied to clipboard

Install Prefix suggestion

Open Pickle opened this issue 1 year ago • 0 comments

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/"
     )

Pickle avatar Jun 23 '24 16:06 Pickle