Fix build with CMake 2.6.4
Set search path early enough, so fallback module for CMake 2.6 is found.
This commit is contained in:
parent
32c4cfa768
commit
4845037bd7
1 changed files with 3 additions and 3 deletions
|
@ -7,6 +7,9 @@ include (CheckIncludeFile)
|
||||||
|
|
||||||
project(FlightGear)
|
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)
|
if(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
|
||||||
# use official include provided by latest CMake
|
# use official include provided by latest CMake
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
@ -46,9 +49,6 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "flightgear-${FLIGHTGEAR_VERSION}" CACHE INTE
|
||||||
|
|
||||||
include (CPack)
|
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)
|
if (FG_DATA_DIR)
|
||||||
message(STATUS "Using explicit data-dir: ${FG_DATA_DIR}")
|
message(STATUS "Using explicit data-dir: ${FG_DATA_DIR}")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Add table
Reference in a new issue