Skip to content

Commit

Permalink
Allow to force a Qt4 build even if Qt5 is successfully found
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Nov 22, 2013
1 parent 50582ec commit 72930d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 72930d1

Please sign in to comment.