From 5f7f6319eb1f0432db2f9aed012e3014fa077daf Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 11 May 2015 22:28:02 +0200 Subject: [PATCH] Made global setting of CMake module path explicit. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a169473..4dd1c1c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,6 @@ if (GLFW_USE_EGL) message(FATAL_ERROR "Unsupported client library") endif() - set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake/modules") find_package(EGL REQUIRED) if (NOT _GLFW_USE_OPENGL) @@ -84,6 +83,8 @@ 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)