Skip to content

Commit 52c0384

Browse files
committedApr 16, 2021
Fix ignored OpenGLES2 include path and cmake warning
1 parent a106bfd commit 52c0384

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎cmake/Modules/FindOpenGLES2.cmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ else()
4242
)
4343

4444
include(FindPackageHandleStandardArgs)
45-
find_package_handle_standard_args(OPENGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
45+
find_package_handle_standard_args(OpenGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
4646

4747
find_path(EGL_INCLUDE_DIR EGL/egl.h
4848
PATHS /usr/openwin/share/include
@@ -59,7 +59,6 @@ else()
5959
/usr/lib
6060
)
6161

62-
include(FindPackageHandleStandardArgs)
6362
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
6463
endif()
6564

‎src/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ include_directories(
513513
${PROJECT_SOURCE_DIR}/script
514514
)
515515

516+
if(ENABLE_GLES)
517+
include_directories(${OPENGLES2_INCLUDE_DIR} ${EGL_INCLUDE_DIR})
518+
endif()
519+
516520
if(USE_GETTEXT)
517521
include_directories(${GETTEXT_INCLUDE_DIR})
518522
endif()

0 commit comments

Comments
 (0)