From 72930d1ef1df0c72189555816786806790755111 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 21 Nov 2013 17:55:53 -0800 Subject: [PATCH] Allow to force a Qt4 build even if Qt5 is successfully found --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b601565..d38235d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,11 @@ cmake_minimum_required(VERSION 2.6) find_package(HSPlasma REQUIRED) -find_package(Qt5Core) +option(PlasmaShop_FORCE_QT4 "Force Qt4 build even if Qt5 can be found" OFF) +if(NOT PlasmaShop_FORCE_QT4) + find_package(Qt5Core) +endif() + if(Qt5Core_FOUND) set(PS_USE_QT5 TRUE) macro(QTX_WRAP_CPP dest files)