What's the cmake generator for Visual Studio 2019
18,503
from your directory where the cmakelist.txt exists. here are steps:
- mkdir build
- cd build
- depending upon the architecture you're using
cmake -G "Visual Studio 16 2019" -A x64 ../"
other options are:
cmake -G "Visual Studio 16 2019" -A Win32
cmake -G "Visual Studio 16 2019" -A x64
cmake -G "Visual Studio 16 2019" -A ARM
cmake -G "Visual Studio 16 2019" -A ARM64
it will generate makefiles required and serves your purpose
furthermore, you could
devenv <nameof solutions file> /build <Debug/Release option>
for building your project
Comments
-
locke14 almost 2 years
With Visual Studio 2017, I used the generator
"Visual Studio 15 2017 Win64"
forcmake
. After updating to Visual Studio 2019, what's the new corresponding generator?