cmake --build/--install: Make default config the same for both
This issue was originally posed as a question on the CMake forum. The response is that it's something that should be a new issue.
Summary
- Windows machine
- Visual Studio compiles
- commands
mkdir build
cd build
cmake ..
cmake --build .
cmake --install . --prefix "%CD%\..\INSTALL"
This command sequence fails because the default config target for --build
is Debug, but the default config target for --install
is Release.
The commands should be consistent and use the same default target configurations.