summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-02-17 09:54:59 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-02-18 14:44:57 +0100
commiteaa29378b9009e36f643004e2df5265cc63409f6 (patch)
treef3ae00b3202c3b1d188db3067f242809ad915743 /src
parent00eeed234f7c4cfc357b17424e0dcd714ff65e70 (diff)
CMake: Fix c++ standard config tests with MSVC
Need to pass additional -Zc:__cplusplus flag when using MSVC, so that the __cplusplus define has correct values. Additionally make the option be propagated to consumers of Qt via the public Platform target, which QtCore links against. Change-Id: Ie1283c25334b93f993529beb7fb32bdb001627f5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/tools/bootstrap/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/bootstrap/CMakeLists.txt b/src/tools/bootstrap/CMakeLists.txt
index 2121faae12..88b2c94038 100644
--- a/src/tools/bootstrap/CMakeLists.txt
+++ b/src/tools/bootstrap/CMakeLists.txt
@@ -223,7 +223,9 @@ qt_extend_target(Bootstrap CONDITION WIN32 AND mingw
uuid
)
-# special case:
+# special case begin
qt_internal_add_link_flags_gc_sections(Bootstrap PUBLIC)
set_target_properties(Bootstrap PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF)
qt_internal_add_target_aliases(Bootstrap)
+qt_enable_msvc_cplusplus_define(Bootstrap PUBLIC)
+# special case end