From 13ca57013d22cc0495dea909a96fd8322e266a38 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Tue, 8 May 2012 21:42:18 +0200 Subject: -add logic to handle components which exist in Qt5 but not in Qt4 Alex --- modules/FindQt5Transitional.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/FindQt5Transitional.cmake') 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}) -- cgit v1.2.1