mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 09:08:58 -05:00
QtDialog: Fix Qt 5 build on non-Windows.
The Qt5Core_QTMAIN_LIBRARIES variable is defined to the Qt5::WinMain target on Windows, and undefined elsewhere.
This commit is contained in:
@@ -28,7 +28,7 @@ if (Qt5Widgets_FOUND)
|
|||||||
qt5_add_resources(${ARGN})
|
qt5_add_resources(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
set(CMake_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
|
set(CMake_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
|
||||||
set(QT_QTMAIN_LIBRARY Qt5::WinMain)
|
set(QT_QTMAIN_LIBRARY ${Qt5Core_QTMAIN_LIBRARIES})
|
||||||
|
|
||||||
# Remove this when the minimum version of Qt is 4.6.
|
# Remove this when the minimum version of Qt is 4.6.
|
||||||
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
|
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
|
||||||
|
|||||||
Reference in New Issue
Block a user