mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Made global setting of CMake module path explicit.
This commit is contained in:
parent
47592fbf42
commit
5f7f6319eb
|
@ -72,7 +72,6 @@ if (GLFW_USE_EGL)
|
||||||
message(FATAL_ERROR "Unsupported client library")
|
message(FATAL_ERROR "Unsupported client library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake/modules")
|
|
||||||
find_package(EGL REQUIRED)
|
find_package(EGL REQUIRED)
|
||||||
|
|
||||||
if (NOT _GLFW_USE_OPENGL)
|
if (NOT _GLFW_USE_OPENGL)
|
||||||
|
@ -84,6 +83,8 @@ else()
|
||||||
set(_GLFW_USE_OPENGL 1)
|
set(_GLFW_USE_OPENGL 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules")
|
||||||
|
|
||||||
if (_GLFW_USE_OPENGL)
|
if (_GLFW_USE_OPENGL)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
elseif (_GLFW_USE_GLESV1)
|
elseif (_GLFW_USE_GLESV1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user