From c9ae3f4efe713f6714b9d5a62ac66b941f5c42d5 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 14 May 2015 17:00:01 +0200 Subject: [PATCH] Fixed build regression. Fixes regression caused by 5f7f6319eb. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0eccf6a1..048d1ee2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)