mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
cmake: fix Katie always being prefered over Qt4
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca191527d1
commit
6d85e304aa
1 changed files with 7 additions and 2 deletions
|
@ -290,8 +290,13 @@ set(QT_USE_IMPORTED_TARGETS TRUE)
|
|||
# TODO: we should check here that all necessary modules of Qt have been found, e.g. QtDBus
|
||||
option(WITH_KATIE "Build against Katie instead of Qt4" OFF)
|
||||
|
||||
find_package(Katie)
|
||||
if(WITH_KATIE AND NOT KATIE_FOUND)
|
||||
# TODO: once Katie goes stable make it required from const in KDEConfig if
|
||||
# kdelibs is build against it, this file may go away due to order issues
|
||||
# and be merged into KDEConfig.
|
||||
if(WITH_KATIE)
|
||||
find_package(Katie)
|
||||
endif()
|
||||
if(NOT KATIE_FOUND)
|
||||
find_package(Qt4 ${_REQ_STRING_KDE4})
|
||||
else()
|
||||
# avoid the need to check WITH_KATIE in addition to KATIE_FOUND
|
||||
|
|
Loading…
Add table
Reference in a new issue