M
M
Mars362020-12-17 11:17:17
CMake
Mars36, 2020-12-17 11:17:17

How to tell the compiler not to create a project for Visual Studio (cmake, mcvs2019) when building?

When building third-party projects, after running cmake, project files *nameProject*.sln, ALL_BUILD.vcxproj, etc. appear in the build folder. Is it possible to build a project with make without opening studio and compiling the project in it? I would like to do everything in the console without opening the studio once again.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
klirichek, 2021-06-07
@Mars36

cmake --build . --config release
cmake --build . --config debug
the project in this case is just the generated build file. cmake --build can build any configured projects, calling the correct tool (what exactly will be there - make, ninja or msbuild - it doesn't matter, the syntax is the same)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question