Hi,
Specifying -trace or –debug before the -E option messes up the -E option. I can’t find this documented in the options page (https://cmake.org/cmake/help/v4.0/manual/cmake.1.html#run-a-command-line-tool)
This might be a bug but it might at least be nice to indicate in the documentation or maybe even cmake could flag this.
This was particularly confusing when I was trying to debug something that I was only trying to build which used cmake. I am brand new to cmake and I figured I’d add –debug to a command that was failing. My command was something like:
cmake -trace -E “abc.exe” -o xyz.txt
cmake complained:
CMake Error: Unknown argument -o
Thanks,
Albert