aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-05-08 21:42:18 +0200
committerAlex Neundorf <neundorf@kde.org>2012-05-08 21:50:43 +0200
commit13ca57013d22cc0495dea909a96fd8322e266a38 (patch)
tree79ac104293e64df5cc4730a024dc25a8b1405750
parentae1191b1a85a73151fffe084e853581683698489 (diff)
downloadextra-cmake-modules-13ca57013d22cc0495dea909a96fd8322e266a38.tar.gz
extra-cmake-modules-13ca57013d22cc0495dea909a96fd8322e266a38.tar.bz2
-add logic to handle components which exist in Qt5 but not in Qt4
Alex
-rw-r--r--modules/FindQt5Transitional.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/FindQt5Transitional.cmake b/modules/FindQt5Transitional.cmake
index c6672d38..be544ea6 100644
--- a/modules/FindQt5Transitional.cmake
+++ b/modules/FindQt5Transitional.cmake
@@ -47,6 +47,11 @@ if (Qt5Core_FOUND)
include_directories(${QT_INCLUDES}) # TODO: Port away from this.
else()
foreach(_component ${Qt5Transitional_FIND_COMPONENTS})
+ if("${_component}" STREQUAL "Widgets") # new in Qt5
+ set(_component Gui)
+ elseif("${_component}" STREQUAL "Concurrent") # new in Qt5
+ set(_component Core)
+ endif()
list(APPEND _components Qt${_component})
endforeach()
find_package(Qt4 REQUIRED ${_components})