[CMake] does cmake get dependencies between asm files? and when said so does it link them?

Ivan Sergio Borgonovo mail at webthatworks.it
Fri Nov 1 17:32:47 EDT 2013


On Fri, 1 Nov 2013 20:08:05 +0100
Alexander Neundorf <a.neundorf-work at gmx.net> wrote:

> On Friday 01 November 2013, Ivan Sergio Borgonovo wrote:
> > On Fri, 1 Nov 2013 17:36:33 +0100
> > 
> > Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> > > > If it was supposed to work right out of the box without fiddling
> > > > with
> > > 
> > > having to set the LANGUAGE is expected for unusual file
> > > extensions. With that, it should work.
> > 
> > That's OK. I just had to understand how.
> > 
> > > Could you try to rename your target "crt0" to something different
> > > and see whether this changes something ?
> > 
> > I renamed the crt0.x file to pino.x.
> > removed add_dependencies() and set_property(...)
> > pino.x get assembled but it doesn't get linked.
 
> and the name of the library target ? Still crt0 or something else ?

Changed too. Everything is generated by a python script that take the
name of the target from the source (+ numbering if needed to avoid
duplicates in targets name).

I just had one file whose name was duplicated and coincidentally it was
an asm file too. 2 exception.x whose targets became exception and
exception1 but both of them were compiled and just 1 linked, since
just one was actually referenced in the rest of the code.

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the CMake mailing list