We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb8b33 commit bae1912Copy full SHA for bae1912
1 file changed
CMakeLists.txt
@@ -169,8 +169,10 @@ else()
169
message(FATAL_ERROR "OpenGL ES 3 support is currently only available for Linux platforms. You're building for ${CMAKE_SYSTEM_NAME}.")
170
endif()
171
172
- # We use a local find script for OpenGL::GLES3 until the proposed changes are merged upstream.
173
- list(APPEND CMAKE_MODULE_PATH "${PROJECTM_SOURCE_DIR}/cmake/gles")
+ if (CMAKE_VERSION VERSION_LESS_EQUAL "3.22")
+ # We use a local find script for OpenGL::GLES3 until the proposed changes are merged upstream.
174
+ list(APPEND CMAKE_MODULE_PATH "${PROJECTM_SOURCE_DIR}/cmake/gles")
175
+ endif()
176
find_package(OpenGL REQUIRED COMPONENTS GLES3)
177
if(NOT TARGET OpenGL::GLES3)
178
message(FATAL_ERROR "No suitable GLES3 library was found.")
0 commit comments