diff --git a/CMakeLists.txt b/CMakeLists.txt index 59069d294..771471d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index ce21defb1..1c5305945 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -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)