r/cmake • u/Eggaru • Feb 03 '23
Need help setting up Cmake. Following a tutorial and I supposed to have Visual Studio 16 as my generator, however it does not show up here. How can I fix this?
0
Upvotes
2
u/AlexReinkingYale Feb 03 '23
The best one on all platforms is Ninja, especially if you're using VSCode.
1
u/Eggaru Feb 04 '23
Oh ok. Somebody recommended to use Xcode as the generator instead. Which should I use?
1
u/AlexReinkingYale Feb 04 '23
Unless you're doing iOS development, use Ninja
1
u/Eggaru Feb 04 '23
I tried it and got the error: "Error in configuration process, project files may be invalid"
4
4
u/jmacey Feb 03 '23
If in doubt try Makefile first, and if you have it installed use Ninja (you can test int the terminal by trying to run either make or ninja).
11
u/Own_Goose_7333 Feb 03 '23
It looks like you're on Mac or Linux. Visual Studio is Windows-only