CMake dies on invalid get_directory_property()
I can reproducably get CMake to bail out with the line
get_directory_property(output DIRECTORY ${PROJECT_SOURCE_DIR})
I am well aware that this line is ill-formed, because it lacks a property to get. So the actual problem is definitely incorrect input here. However, the effect is that CMake seems to run a little and then dies, which may point to some underlying issue in the parser.
Version 3.19.1