Skip to content

Commit

Permalink
Fix ignored OpenGLES2 include path and cmake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Apr 16, 2021
1 parent a106bfd commit 52c0384
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/Modules/FindOpenGLES2.cmake
Expand Up @@ -42,7 +42,7 @@ else()
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OPENGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
find_package_handle_standard_args(OpenGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)

find_path(EGL_INCLUDE_DIR EGL/egl.h
PATHS /usr/openwin/share/include
Expand All @@ -59,7 +59,6 @@ else()
/usr/lib
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
endif()

Expand Down
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -513,6 +513,10 @@ include_directories(
${PROJECT_SOURCE_DIR}/script
)

if(ENABLE_GLES)
include_directories(${OPENGLES2_INCLUDE_DIR} ${EGL_INCLUDE_DIR})
endif()

if(USE_GETTEXT)
include_directories(${GETTEXT_INCLUDE_DIR})
endif()
Expand Down

0 comments on commit 52c0384

Please sign in to comment.