Dear CMakers,

I was wondering if it is possible to get a custom verbose output when compiling? Currently when you do "make VERBOSE=ON" you get lines which are full of paths of "mediocre interest", while many developers are highly curious about seeing the flags and the files that are linked.

In order to demonstrate what I mean I have this highly stupidly written command using sed several times: make -n | sed -e 's/\/[A-Za-z]*\//\//g' | sed -e 's/\/.[A-Za-z]*\///g' | sed -e 's/CMakeFiles\/[A-Za-z]*\.dir\///g' (yes I know if I spent another 30 minutes I would probably be able to write this with one sed command only, I'm a sed newbie...)

This command at least for me removes all paths so that it says e.g.
gfortran -o a_scratch_size.f90.o -D_CATCH_MEM -D_WRAP_FORTRAN_CALLS -D_WRAP_C_CALLS -D_FULL -I. -Imadx-svn/madX -funroll-loops -fno-range-check -fno-f2c -O2 -Jbin/fortran -I/include -c madx-svn/a_scratch_size.f90

instead of previously (using only "make -n"):
/usr/bin/gfortran -o CMakeFiles/madx.dir/a_scratch_size.f90.o -D_CATCH_MEM -D_WRAP_FORTRAN_CALLS -D_WRAP_C_CALLS -D_FULL -I. -I/Users/yngveinntjorelevinsen/tmp/madx-svn/madX -funroll-loops -fno-range-check -fno-f2c -O2 -Jbin/fortran -I/usr/include -c /Users/yngveinntjorelevinsen/tmp/madx-svn/madX/a_scratch_size.f90

My question then becomes, would it be possible to do something similar with some kind of CMake flag? It would be very useful for developers in the project I am working on...

Cheers and thanks,
Yngve
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to