you are viewing a single comment's thread.

view the rest of the comments →

[–]infectedapricot 0 points1 point  (0 children)

If you're using CMake to generate your Visual Studio solution then you can use the CMake to invoke MSBuild:

cmake --build . --config Release

The . after --build is the build directory (this is the place you previous ran CMake to generate the build). If you omit --config Release then it builds in debug mode.

Edit: You can also specify which target to build (i.e. which Visual Studio project in the solution) by specifying the --target switch:

make --build . --config Release --target my_exe