From b8b3dfa277bf8911a9c5b9b2a4a3bfeebfb0f915 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 14 Dec 2013 17:03:08 +0100 Subject: Make the tests pass Since some cmake modules include others inside e-c-m we need to set the cmake module path so that they are found --- tests/ExecuteAllModules/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ExecuteAllModules/CMakeLists.txt b/tests/ExecuteAllModules/CMakeLists.txt index 43aa1ba5..be3ee67f 100644 --- a/tests/ExecuteAllModules/CMakeLists.txt +++ b/tests/ExecuteAllModules/CMakeLists.txt @@ -12,6 +12,8 @@ cmake_minimum_required(VERSION 2.8) file(GLOB all_find_modules "${CMAKE_CURRENT_SOURCE_DIR}/../../find-modules/Find*cmake") file(GLOB all_other_modules "${CMAKE_CURRENT_SOURCE_DIR}/../../modules/*cmake") +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules) + foreach(module ${all_find_modules} ${all_other_modules}) message(STATUS "module: ${module}") include("${module}") -- cgit v1.2.1