Enable lower cmake for Qt 4.

This commit is contained in:
Martin Rotter 2014-01-17 19:40:54 +01:00
parent 6095f35d28
commit c0755b9eef

View File

@ -35,7 +35,6 @@
#
#################################################################
cmake_minimum_required(VERSION 2.8.10)
# Setup basic variables.
project(rssguard)
@ -54,6 +53,12 @@ set(EXE_NAME ${APP_LOW_NAME})
option(USE_QT_5 "Use Qt 5 for building" OFF)
option(BUNDLE_ICON_THEMES "Equip installation with custom icon themes" ON)
if(${USE_QT_5})
cmake_minimum_required(VERSION 2.8.10)
else(${USE_QT_5})
cmake_minimum_required(VERSION 2.8.0)
endif(${USE_QT_5})
message(STATUS "[${APP_LOW_NAME}] Welcome to ${APP_NAME} compilation process.")
message(STATUS "[${APP_LOW_NAME}] Compilation process begins right now.")