Cant compile using cmake and visualstudio 2022
Unsolved
General and Desktop
-
Hello.
I cant get my project to compile (It does run in Qt Creator).
I started by running the following command:
cmake -S C:\Qt\Examples\Qt-6.3.0\widgets\dialogs\trivialwizard -B C:\Qt\Examples\Qt-6.3.0\widgets\dialogs\trivialwizard/build
This successfully created all the files in the build directory.Here is a screenshot of all files in build directory:
I have tried opening the .sln file and running ALL_BUILD:
I get this error:
I have changed the c++ version to 17, and still get the same error.
I cant figure out how to set compiler options. I dont have the c/c++ tab in properties:
I found some one that had the same problem and he fixed it by chaning some options but i do not have the All Options tab:
http://quabr.com:8182/70373606/how-to-fix-qt-requires-a-c17-compilerI'm on windows 10.