I tried building via the command line interface:
cmake ../path_to_source -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release cmake --build .
But when I ran the built target I got some strange dll errors. II discovered that the built executable was the debug version of my application, even though I specified
To actually build the release version of the executable I had to specify the config when triggering the build:
cmake --build . --config Release
The documentation for the build command do not mention this. Maybe it should be amended with this information: