Salome HOME
Boost has been removed from CMake (linux environment)
[modules/shaper.git] / CMakeCommon / FindQt.cmake
index 786612a30145bab074006a8795a981393075e719..77376576553c712a1ebec373436938388e82abd3 100644 (file)
@@ -1,5 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
-
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
 IF(WIN32)
     SET(QT_USE_QTMAIN ON)
 ENDIF()
@@ -7,8 +6,8 @@ ENDIF()
 # Widgets finds its own dependencies (QtGui and QtCore).
 FIND_PACKAGE(Qt4 REQUIRED)
 
-IF(NOT Qt4_FOUND)
-       MESSAGE(FATAL_ERROR "Qt not found.")
+IF(NOT QT4_FOUND)
+    MESSAGE(FATAL_ERROR "Qt not found.")
 ENDIF()
 
 INCLUDE(${QT_USE_FILE})
@@ -22,4 +21,4 @@ ADD_DEFINITIONS(${QT_DEFINITIONS})
 
 # Executables fail to build with Qt 5 in the default configuration
 # without -fPIE. We add that here.
-#SET(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
\ No newline at end of file
+#SET(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")