#CMake help

25 messages · Page 1 of 1 (latest)

patent otter
#

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.

peak burrowBOT
#

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.

past heart
patent otter
#

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

past heart
patent otter
#

i see

past heart
#

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)

patent otter
#

which one is supposed to be the build tool?

past heart
# patent otter

The Makefile is the build configuration for make (part of the XCode command line utilities IIRC)

patent otter
#

i tried it but it is still not opening it

#

would it be easier to just do this through the GUI

past heart
#

On MacOS make comes with the XCode developer tools

patent otter
#

Oh so all I have to type is just make in the terminal

#

Ah I see

#

When I do that tho all it does is just compile the code

#

actually i think its just come to me that ive been misunderstanding what cmake is

#

lmao

#

thank you for helping

#

!solved