CMake: Don't require to install glapi.h to system

This failed when a current build configuration hadn't got any program
depending on LibGL.
This commit is contained in:
Karol Kosek 2022-12-22 18:30:20 +01:00 committed by Andrew Kaster
parent 22a99e39d8
commit bc587b89d8

View file

@ -10,5 +10,5 @@ function (generate_libgl_implementation)
arguments -j "${LIBGL_INPUT_FOLDER}/GLAPI.json"
)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/GL/glapi.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibGL/GL/")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/GL/glapi.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibGL/GL/" OPTIONAL)
endfunction()