summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtBuild.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 84769a4eb8..f881c3eabd 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -852,6 +852,12 @@ function(add_qt_executable name)
MACOSX_BUNDLE "${arg_GUI}"
)
+ if(WIN32)
+ # Workaround for not having ported the winmain / qtmain static library
+ # which is always linked in by qmake.
+ set_target_properties("${name}" PROPERTIES WIN32_EXECUTABLE 0)
+ endif()
+
if(NOT arg_NO_INSTALL)
install(TARGETS "${name}"
RUNTIME DESTINATION "${arg_INSTALL_DIRECTORY}"