Details
Description
If CMake is pointed to the wrong (subordinate, instead of top level) directory, the CMakeLists.txt file should detect the problem and exit with a clear error message instead of generating a bogus build accompanied by a vague warning.
To reproduce:
cd trunk\proton-c
mkdir build
cd build
cmake [args] ..
[build away]
In which case cmake uses trunk/proton-c/CMakeLists.txt as the top level instead of trunk/CMakeLists.txt.