summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-09 13:00:53 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-09 19:20:26 +0300
commitecbf5480d6fb49cb5fb3d6edebcdda8ed03bd28c (patch)
treeda721ef2172f664b00e73e76f589bd16305351fc
parent5f00d0b6a9380da88d941bcbafca65c30799c005 (diff)
FindQt4or5: fix compatibility with older cmake
-rw-r--r--cmake/modules/FindQt4or5.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/modules/FindQt4or5.cmake b/cmake/modules/FindQt4or5.cmake
index a5f5745..f5355b2 100644
--- a/cmake/modules/FindQt4or5.cmake
+++ b/cmake/modules/FindQt4or5.cmake
@@ -113,7 +113,7 @@ elseif (${QT_VERSION} STREQUAL "4")
set(QT_USE_IMPORTED_TARGETS TRUE)
find_package(Qt4 ${Qt4_MIN_VERSION} ${_Qt4or5_FIND_PACKAGE_ARGS})
- set(_Qt4or5_FOUND ${Qt4_FOUND})
+ set(_Qt4or5_FOUND ${QT4_FOUND})
# set Qt4or5_Foo_FOUND
foreach (qt_component ${_Qt4or5_FIND_COMPONENTS})
@@ -174,7 +174,8 @@ else()
endif()
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Qt4or5 FOUND_VAR Qt4or5_FOUND REQUIRED_VARS _Qt4or5_FOUND HANDLE_COMPONENTS)
+find_package_handle_standard_args(Qt4or5 REQUIRED_VARS _Qt4or5_FOUND HANDLE_COMPONENTS)
+set(Qt4or5_FOUND ${QT4OR5_FOUND})
# qt4or5_use_modules(target [ LINK_PUBLIC | LINK_PRIVATE ] <modules>)
# Supported modules: Core, Gui, Widgets, Quick1, Quick2, Test, OpenGL