summaryrefslogtreecommitdiffstats
path: root/cmake/QtInternalTargets.cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-01-18 18:35:50 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2021-01-19 19:10:41 +0100
commit8b7894cb637d21d8fa9bd129849cd23462632d28 (patch)
tree976987fec3b7df746b144760f398bb355196a4ae /cmake/QtInternalTargets.cmake
parent2ce94889a192ea67ba343bf0f6b16ede2648f374 (diff)
Move UNICODE and _UNICODE definitions to internal platform target
Move UNICODE and _UNICODE definitions from the public Qt::Platform target to the private Qt::PlatformCommonInternal target. Fixes: QTBUG-89951 Change-Id: Ib4c1c4cab74acda0a43c4ddb3cffd3954393dc89 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'cmake/QtInternalTargets.cmake')
-rw-r--r--cmake/QtInternalTargets.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index ee6c0280ff..4ed2f1c21a 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -147,6 +147,10 @@ elseif(UIKIT)
target_compile_definitions(PlatformCommonInternal INTERFACE GLES_SILENCE_DEPRECATION)
endif()
+if(WIN32)
+ target_compile_definitions(PlatformCommonInternal INTERFACE "UNICODE;_UNICODE")
+endif()
+
if(UIKIT)
# Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for
# simulator_and_device_builds.