mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Formatting.
This commit is contained in:
parent
311b9df102
commit
f004aa0f82
@ -4,12 +4,13 @@
|
||||
# EGL_LIBRARY
|
||||
# EGL_FOUND
|
||||
|
||||
FIND_PATH(EGL_INCLUDE_DIR NAMES EGL/egl.h)
|
||||
find_path(EGL_INCLUDE_DIR NAMES EGL/egl.h)
|
||||
|
||||
SET(EGL_NAMES ${EGL_NAMES} egl EGL)
|
||||
FIND_LIBRARY(EGL_LIBRARY NAMES ${EGL_NAMES})
|
||||
set(EGL_NAMES ${EGL_NAMES} egl EGL)
|
||||
find_library(EGL_LIBRARY NAMES ${EGL_NAMES})
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)
|
||||
|
||||
MARK_AS_ADVANCED(EGL_INCLUDE_DIR EGL_LIBRARY)
|
||||
|
@ -15,7 +15,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
||||
option(GLFW_USE_EGL "Build for EGL and OpenGL ES platform (Currently only X11)" OFF)
|
||||
|
||||
if (GLFW_USE_EGL)
|
||||
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules)
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules)
|
||||
find_package(EGL REQUIRED)
|
||||
else()
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
Loading…
Reference in New Issue
Block a user