From eaa29378b9009e36f643004e2df5265cc63409f6 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 17 Feb 2020 09:54:59 +0100 Subject: 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 Reviewed-by: Leander Beernaert --- qmake/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qmake/CMakeLists.txt') diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt index ff50f507c5..fb370eda4a 100644 --- a/qmake/CMakeLists.txt +++ b/qmake/CMakeLists.txt @@ -215,3 +215,6 @@ set_target_properties(qmake PROPERTIES ) qt_internal_add_link_flags_gc_sections(qmake PRIVATE) # special case + +qt_enable_msvc_cplusplus_define(qmake PUBLIC) # special case + -- cgit v1.2.3