From 4917fbf6ef4762264a29ad777d1433bb6d7e1c80 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 10 Apr 2014 13:19:30 +0400 Subject: [PATCH] Porting to Qt4: small corrections in FindQt script --- CMakeCommon/FindQt.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeCommon/FindQt.cmake b/CMakeCommon/FindQt.cmake index 7c6d8c61e..786612a30 100644 --- a/CMakeCommon/FindQt.cmake +++ b/CMakeCommon/FindQt.cmake @@ -1,18 +1,14 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) IF(WIN32) - SET(Q_WS_WIN ON) SET(QT_USE_QTMAIN ON) -ELSE() - SET(Q_WS_X11 ON) ENDIF() # Widgets finds its own dependencies (QtGui and QtCore). FIND_PACKAGE(Qt4 REQUIRED) -IF(Qt4_FOUND) - SET(QT_VERSION_STRING "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}") - MESSAGE(STATUS "Found Qt version: " ${QT_VERSION_STRING}) +IF(NOT Qt4_FOUND) + MESSAGE(FATAL_ERROR "Qt not found.") ENDIF() INCLUDE(${QT_USE_FILE}) -- 2.39.2