CMake Invalid Preset when not including binaryDir
The documentation for 3.19 RC2 says that binaryDir
is an optional field. But it is required in practice.
cmake -S src -B gcc_preset_bld --list-presets
CMake Error: Could not read presets from C:/Users/fbaksik/Desktop/cmake/tests/test_preset/src: Invalid preset
This error can be seen by using the documented preset example and removing the binaryDir
field.