]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Porting to Qt4: small corrections in FindQt script
authorsbh <sergey.belash@opencascade.com>
Thu, 10 Apr 2014 09:19:30 +0000 (13:19 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 10 Apr 2014 09:19:30 +0000 (13:19 +0400)
CMakeCommon/FindQt.cmake

index 7c6d8c61e7dfbe7bdb296110920562258dda1d00..786612a30145bab074006a8795a981393075e719 100644 (file)
@@ -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})