[CMake] Complete Path of source files being displayed in obj Files

Eric Noulard eric.noulard at gmail.com
Wed Jul 8 06:20:39 EDT 2009


2009/7/8 Malhotra, Anupam <Anupam.Malhotra at safenet-inc.com>:
> Hi David
>
>
>
> Thanks for the reply. I am not concerned about the names of object files. I
> was talking about the contents of the object files. If you analyze the
> object files, they contain the complete paths of corresponding source files.
> This complete path is not desirable for us. We want the object files to
> contain only the relative paths. Is that possible?

May be you are using __FILE__ macro in order to print debug/log message
in your source code right?

I did use basename/dirname functions
http://www.linuxmanpages.com/man3/basename.3.php
in order to avoid to display full path in such case.

What's your test case?

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list