File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# GLES3 Find Script
22
33The OpenGL CMake find script in this directory contains additional code to find GLES versions 1 to 3. It was taken from
4- CMake 3.22 and patched accordingly. A merge request is underway upstream, so ideally, this will be part of CMake 3.23+ .
4+ CMake 3.22 and patched accordingly. A merge request was accepted upstream, it is part of CMake 3.27 .
55
6- In the meantime, we'll use this script as a local copy if GLES3 support is requested. Will add a version check once it's
7- in upstream CMake so this file will only be used if the CMake version used to build projectM is too low.
6+ We use this script for CMake lower than 3.27 as a local copy if GLES3 support is requested to provide compatibility. A version check
7+ compares the current CMake version so this file will only be used if the CMake version used to build projectM is too low.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ include(CMakeFindDependencyMacro)
66
77if (NOT "@ENABLE_EMSCRIPTEN@" ) # ENABLE_EMSCRIPTEN
88 if ("@ENABLE_GLES@" ) # ENABLE_GLES
9- if (CMAKE_VERSION VERSION_LESS_EQUAL "3.22 " OR CMAKE_SYSTEM_NAME STREQUAL Android )
9+ if (CMAKE_VERSION VERSION_LESS_EQUAL "3.26 " OR CMAKE_SYSTEM_NAME STREQUAL Android )
1010 set (PROJECTM4_PREV_MODULE_PATH ${CMAKE_MODULE_PATH } )
1111 list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR } " )
1212 find_dependency (OpenGL COMPONENTS GLES3 )
You can’t perform that action at this time.
0 commit comments