[Cmake] CMake error output improvments

Bill Hoffman bill.hoffman at kitware.com
Wed Jan 15 11:42:45 EST 2003


In version 1.6, there is better error reporting with file and line number information.   You can try the 1.6 beta now.

-Bill


At 03:56 PM 1/15/2003 +0100, Marco Petrone wrote:
>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
>
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake






More information about the CMake mailing list