Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# Create empty dummy library when building without GLU
if(NOT USE_GLU)
message(STATUS "Building without OpenGL Utility Library (GLU)")
add_library(opengl_glu INTERFACE)
add_library(OpenGL::GLU ALIAS opengl_glu)
return()
endif()
# Try to find OpenGL library on the system
find_package(OpenGL QUIET)
if(OpenGL_FOUND)
# Stop here, we're done
return()
endif()
message(FATAL_ERROR "Did not find OpenGL Utility Library (GLU)! \
Consider passing '-DUSE_GLU=0' to cmake."
)
c730ec352This file is pinned to the selected release. Download the original to open it in your design tool.