From: sbh Date: Thu, 10 Apr 2014 09:19:30 +0000 (+0400) Subject: Porting to Qt4: small corrections in FindQt script X-Git-Tag: V_0.1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4917fbf6ef4762264a29ad777d1433bb6d7e1c80;p=modules%2Fshaper.git Porting to Qt4: small corrections in FindQt script --- 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})