X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=CMakeCommon%2FFindQt.cmake;h=389f01f5c1192467e7090180f951e35e5699f3e0;hb=c285a7ee449e8cf5de6f94a2170b9587587afe65;hp=786612a30145bab074006a8795a981393075e719;hpb=7ff9c971a42247ba4efd767781d0367dfb8a40e0;p=modules%2Fshaper.git diff --git a/CMakeCommon/FindQt.cmake b/CMakeCommon/FindQt.cmake index 786612a30..389f01f5c 100644 --- a/CMakeCommon/FindQt.cmake +++ b/CMakeCommon/FindQt.cmake @@ -1,5 +1,6 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) +## Copyright (C) 2014-20xx CEA/DEN, EDF R&D +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10) IF(WIN32) SET(QT_USE_QTMAIN ON) ENDIF() @@ -7,8 +8,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 +23,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}")