Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
2.8.0
-
None
-
Visual Studio 2022 version 17.0.2
Qt Visual Studio Tools 2.8.0
Qt 6.2.2
Description
Steps to reproduce:
Create new console project using the wizard.
Change C++ Language Standard to ISO C++17 in project properties.
Add /Zc:__cplusplus in Additional Options of the project properties.
Compile.
I get an error on compilation of `qtvars_plugin_import.cpp`:
fatal error C1189: #error: "Qt requires a C++17 compiler, and a suitable value for __cplusplus. On MSVC, you must pass the /Zc:__cplusplus option to the compiler."
I tried adding other stuff to additional options and then I've enabled verbose output of msbuild. I can see those options correctly passed to compilation of all source files except `qtvars_plugin_import.cpp`. It gets none of them. It's a generated file and I don't see any way to pass those options to it.
Attachments
Issue Links
- relates to
-
QTVSADDINBUG-924 Template project Qt Quick Application using C++14 standard by default even with Qt 6
- Closed