Skip to content

Commit 6858e7b

Browse files
Update src/libprojectM/projectM4Config.cmake.in
Co-authored-by: Kai Blaschke <kai.blaschke@kb-dev.net>
1 parent 09941b5 commit 6858e7b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/libprojectM/projectM4Config.cmake.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ include(CMakeFindDependencyMacro)
77
if(NOT "@ENABLE_EMSCRIPTEN@") # ENABLE_EMSCRIPTEN
88
if("@ENABLE_GLES@") # ENABLE_GLES
99
if (CMAKE_VERSION VERSION_LESS_EQUAL "3.22" OR CMAKE_SYSTEM_NAME STREQUAL Android)
10+
set(PROJECTM4_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
1011
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
12+
find_dependency(OpenGL COMPONENTS GLES3)
13+
set(CMAKE_MODULE_PATH ${PROJECTM4_PREV_MODULE_PATH})
14+
else()
15+
find_dependency(OpenGL COMPONENTS GLES3)
1116
endif()
12-
find_dependency(OpenGL COMPONENTS GLES3)
1317
else()
1418
find_dependency(OpenGL)
1519
endif()

0 commit comments

Comments
 (0)