Hello, this doesnt really relate to C++, mainly just CMake. One of my classes is making me use CMake for our homeworks and we're given the command: " cmake -S . -B build " to run in the our command line along with a .txt file thats supposed to handle the setup.
My issue is that when i try to open stuff made from that command using CMake it just shows me the same screen. I have tried filling in the boxes with what i think is the correct information but it doesnt let me do anything else other than keep pressing configure and generate. Sorry if this is a super dumb question, I am really inexperienced with computers.
#CMake help
25 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
That’s the CMake GUI, the command is to run CMake in the terminal
Though to get the same result, you only have to set the Source directory to the folder where you have you code files, and the build folder to a folder called build inside the source folder
i ran the command in my terminal
at least i think im pretty sure i did
and i think it did what its supposed to
im just having trouble like opening it with CMake
to clarify the command built some kinda folder named build but i cant open its contents with Cmake
If it generates a build tool inside the build folder, you can use that (since you’re on MacOS, I assume it generated a Makefile, which can be ran with make from the terminal inside the build folder
i see
You can also use the --build argument for CMake inside the terminal to build (though that basically does the same thing as running make for makefiles)
The Makefile is the build configuration for make (part of the XCode command line utilities IIRC)
i tried it but it is still not opening it
would it be easier to just do this through the GUI
make is it’s own program, and you only need to run make (it defaults to using the Makefile file)
On MacOS make comes with the XCode developer tools