From 7d74802e01406c62d6772a21ab8d9b01f5b2d626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 3 Jul 2013 21:26:58 +0200 Subject: [PATCH] Specify CMake module dir before trying to find Corrade. We need file from that module dir to find it. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c5ac343e..328bbb1e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ cmake_minimum_required(VERSION 2.8.8) project(Magnum) # Find Corrade first so we can check on the target +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules/") find_package(Corrade REQUIRED) include(CMakeDependentOption) @@ -66,8 +67,6 @@ if(BUILD_TESTS) enable_testing() endif() -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules/") - # If targeting NaCl or Emscripten, set explicit OpenGL ES 2.0 support if(CORRADE_TARGET_NACL OR CORRADE_TARGET_EMSCRIPTEN) set(TARGET_GLES 1)