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