[Cmake] cmSourceFilesCommand : SOURCE_FILES NAME file AS target

Bill Hoffman bill.hoffman at kitware.com
Mon May 14 11:05:59 EDT 2001


At 02:58 PM 5/14/2001 +0000, sebastien at barre.nom.fr wrote:

No documentation, other than the warning at the top, not to edit the
generated file.....

However, there are built in rules.   For a c++ file we just say:
SOURCE=foo.cxx

And the rest just happens.



>Yes, I was afraid of that. I had a quick look at the .dsp... is this DSP
>format documented somewhere ? URL ? I guess the easiest way to check that
>is to see make it right in the GUI (say that a source file should be
>compiled to a different target file), and see what the generated DSP looks
>like. I'll keep you posted about that.

I am not so sure.   I have done stuff like this in the past, and most compilers
have a default mode that produces a default object file output.   However,
it is not a standard.   For example, what happens with mac compilers?
Even if we could figure this out for the current compiler/build system set,
I don't think the feature is worth the effort, and burden it places on the
generator writer.



>But that would be easy for the Makefile.
>
>> So changing
>> the output name of an individual target will not be easy.  Also, I would like
>> to make writing new generators as easy as possible.   The code to output
>> different .o files or .obj files differs from compiler to compiler, and dsps, and make systems.
>
>Oh sorry, I was speaking of the name, not of the file extension, which, of
>course, is definitely generator-dependant.
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 





More information about the CMake mailing list