skip search for Qt4/KDE4 when ENABLE_QT4==OFF and set compiler opts early

Authored by rjvbb on Jan 7 2017, 12:10 PM.

Description

skip search for Qt4/KDE4 when ENABLE_QT4==OFF and set compiler opts early

Don't do unnecessary work which can fail, e.g. because find_package(KDE4)
will try to use Qt5. Also prevent failing checks in FindKDE4.cmake due
to missing compiler flags (notably -std=c++11).

Details

Committed
rjvbbJan 7 2017, 12:10 PM
Parents
R626:f097f9e6a5cf: fix find_package() argument order in qt5/CMakeListst.txt
Branches
Unknown
Tags
Unknown