Merge topic 'qt5-qtdialog-port'

92b6d85 Enable deprecated API when using Qt 5.
This commit is contained in:
David Cole 2012-09-25 15:18:14 -04:00 committed by CMake Topic Stage
commit 5549334a99
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ if (Qt5Widgets_FOUND)
qt5_add_resources(${ARGN})
endmacro()
set(QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
# Remove this when the minimum version of Qt is 4.6.
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
else()
set(QT_MIN_VERSION "4.4.0")
find_package(Qt4 REQUIRED)