[Cmake] CMake error output improvments
Marco Petrone
m.petrone at cineca.it
Wed Jan 15 09:56:42 EST 2003
Have the features added by Fabien been imported in some CMake release? I
also discovered the CMake output in case of errors is really poor... I
have a project with dozens of cmake files including one each other and
discovering the real position of an error located in sub-included file
can become a real nightmare (if you don't do something like what Fabien
suggests)...
Marco
>
> One of the patch that i think is simple and efficient IMHO is to add
> the parameters of the error line,
> so as an example: instead of looking what SET line is buggy you
> immediately locate it.
>
> Here the modif (add one line):
>
> File cmMakefile.cxx, Line230, replace:
> error = usedCommand->GetName();
> error += ": Error :";
> error += usedCommand->GetError();
> ...
> By:
> error = usedCommand->GetName();
> error += ": Error :";
> error += (expandedArguments.front()+" ...\n");
> error += usedCommand->GetError();
> ...
>
> Enjoy!
>
>
> Regards,
> Fabien.
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list