logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

freeglut-3.2.1-opengl-cmake.patch (488B)


  1. diff --git a/CMakeLists.txt.old b/CMakeLists.txt
  2. index 771a52b..50c5cb9 100644
  3. --- a/CMakeLists.txt.old
  4. +++ b/CMakeLists.txt
  5. @@ -259,8 +259,8 @@ IF(FREEGLUT_GLES)
  6. find_library(OPENGL_glu_LIBRARY NAME GLU HINTS ${X11_LIB_PATH})
  7. endif()
  8. - FIND_PACKAGE(OpenGL REQUIRED)
  9. - LIST(APPEND LIBS ${OPENGL_gl_LIBRARY})
  10. + FIND_PACKAGE(OpenGL COMPONENTS OpenGL REQUIRED)
  11. + LIST(APPEND LIBS ${OPENGL_opengl_LIBRARY})
  12. INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
  13. ENDIF()