diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-19 14:34:18 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-19 14:38:02 (GMT) |
commit | 5f210672daff7841bd83023e0d72dfb6b2dacc01 (patch) | |
tree | a33b43b0211bda93e096897b6d42f93c1839e288 /Source | |
parent | 0f4e8fd0e9d4be3d6a9b6fd6d5a89f5155192064 (diff) | |
download | CMake-5f210672daff7841bd83023e0d72dfb6b2dacc01.zip CMake-5f210672daff7841bd83023e0d72dfb6b2dacc01.tar.gz CMake-5f210672daff7841bd83023e0d72dfb6b2dacc01.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 07a50b9..7885a0c 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -28,7 +28,7 @@ if (Qt5Widgets_FOUND) qt5_add_resources(${ARGN}) endmacro() 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. add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0) |