summaryrefslogtreecommitdiffstats
path: root/cmake/QtBuild.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2019-06-05 15:20:21 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-05 14:06:09 +0000
commit9298033ed6e6e67cce89243f44b7ce77018d0e62 (patch)
tree87981660610c5541a11f6435ceaf05f4da6c75c5 /cmake/QtBuild.cmake
parent016351d267d60d737cc472dad51e96797a10f692 (diff)
CMake: Add WinMain support
Change-Id: I85c56555bc47dcf348daeb3435c621529aa2d381 Fixes: QTBUG-75195 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBuild.cmake')
-rw-r--r--cmake/QtBuild.cmake6
1 files changed, 0 insertions, 6 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 08b04e42ea..854a5f3a45 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -1657,12 +1657,6 @@ function(add_qt_executable name)
endif()
- 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)
qt_install(TARGETS "${name}"
RUNTIME DESTINATION "${arg_INSTALL_DIRECTORY}"