[CMake] Re: cmake ignores .s files

Alexander Neundorf a.neundorf-work at gmx.net
Thu Aug 9 08:26:50 EDT 2007


On Thursday 09 August 2007 02:50, felix winkelmann wrote:
> On 8/8/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> > If gcc would be fine, I think you can do this:
> >
> > set_source_file_properties(foo.s PROPERTIES LANGUAGE C)
>
> Still doesn't work: ADD_LIBRARY(... xyz.s) simple ignores the file.
> (Is this a bug, or intentional - I mean not signalling an error or
> something ?)

I guess it's ignored since its extension doesn't belong to C or C++.
So you could:
-create a C file which just includes this s file
or
-use cmake cvs and use the assembler support

Alex


More information about the CMake mailing list