1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Fixed build regression.

Fixes regression caused by 5f7f6319eb.
This commit is contained in:
Camilla Berglund 2015-05-14 17:00:01 +02:00
parent 6d0698ba0e
commit c9ae3f4efe

View File

@ -58,6 +58,8 @@ elseif (GLFW_USE_MIR)
set(GLFW_USE_EGL ON) set(GLFW_USE_EGL ON)
endif() endif()
set(CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules")
if (GLFW_USE_EGL) if (GLFW_USE_EGL)
set(GLFW_CLIENT_LIBRARY "opengl" CACHE STRING set(GLFW_CLIENT_LIBRARY "opengl" CACHE STRING
"The client library to use; one of opengl, glesv1 or glesv2") "The client library to use; one of opengl, glesv1 or glesv2")
@ -83,8 +85,6 @@ 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)