CMake v3.15.1 fails with a misleading error if there is a "#" sign in the path to the project directory.
When attempting to use
CMake 3.15.1, it failed with a misleading error. After some days of frustration (including reading a book on CMake scripting), managed to track the error down.
This is the original issue on GitHub: https://github.com/capnproto/capnproto/issues/878
The path to my project was:
Changed it to:
... and everything worked perfectly.
CMake can fix this bug, or at the very least, provide a more meaningful error message. The current error message implies that the error is in the
script, it needs to say that the error is in the
path to the project directory, e.g.:
Preferred CMake error (both command line + GUI): To fix, eliminate the '#' sign from the project directory path: S:\Research\C#\github\capnproto_master