From 4845037bd76074e51e947fe2d30cb5c5b933d417 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Wed, 30 Nov 2011 23:33:03 +0100 Subject: [PATCH] Fix build with CMake 2.6.4 Set search path early enough, so fallback module for CMake 2.6 is found. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb023c0e9..ffea91c25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,9 @@ include (CheckIncludeFile) project(FlightGear) +# We have some custom .cmake scripts not in the official distribution. +set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}") + if(${CMAKE_VERSION} VERSION_GREATER 2.8.4) # use official include provided by latest CMake include(GNUInstallDirs) @@ -46,9 +49,6 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "flightgear-${FLIGHTGEAR_VERSION}" CACHE INTE include (CPack) -# We have some custom .cmake scripts not in the official distribution. -set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}") - if (FG_DATA_DIR) message(STATUS "Using explicit data-dir: ${FG_DATA_DIR}") else()