cmake: move cmake 2.4 compatibility settings on top

This commit is contained in:
Michael Gehring 2008-06-20 23:38:33 +02:00 committed by Julien Danjou
parent dd3e37624b
commit 0ec46b99b9
2 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,9 @@
IF(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/awesomeConfig.cmake)
MESSAGE(FATAL "Please provide awesomeConfig.cmake")
ENDIF()
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
IF(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/awesomeConfig.cmake)
MESSAGE(FATAL_ERROR "Please provide awesomeConfig.cmake")
ENDIF()
INCLUDE(awesomeConfig.cmake)

View File

@ -8,7 +8,6 @@ SET(VERSION_PATCH 0)
PROJECT(${PROJECT_AWE_NAME})
SET(CMAKE_BUILD_TYPE RELEASE)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
OPTION(WITH_DBUS "build with D-BUS" ON)
OPTION(WITH_IMLIB2 "build with Imlib2" ON)