I use conan-installed Qt-6.2.2.
I created Qt Widgets Project in VS-2019, switched language to std:c++17
, added /Zc:__cplusplus
to additional options.
Since this is conan-installed QT, it don't have Qt.props
, so I manually created one which includes the props file generated by conan install
.
But it still complains:
Severity Code Description Project File Line Suppression State 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." QtWidgetsApplication2 D:.conan\579957\1\include\QtCore\qglobal.h 94