[CMake] Generated source files and dependencies(+) (Wojciech Migda)

Wojciech Migda wojtek.golf at interia.pl
Tue Sep 8 16:14:45 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Why not include it in the foo target, instead of making a new
a_h_gen target and doing extra dependencies manually?

Firstly, we have hundred of source files which may indirectly depend
generated source files, so we want such information to be covered by
cmake dependency scanner itself - the problem is that there is no link
between the library target and the header target.

By no means we want to specify such dependencies manually - that would
be a nightmare.

If we skip the a_h_gen target the header generation target will not
appear in Makefile2, which I think is one of the required links for
everything to work. The last remaining link is missing (which we may
mimic by hand with the add_dependencies command) by I don't know how
to fix it so it becomes automatic within the build system and
dependency scanner.

- -Wojciech
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKprs10iFl+nAyImcRAo5XAJ4scpKe/E9g5uTZcFPyLYroJmD0oACghdom
T6TR/kPv+kLYga/wCXObbwA=
=q652
-----END PGP SIGNATURE-----



----------------------------------------------------------------------
Marcin Gortat – gwiazda NBA w naszej reprezentacji!
Czytaj wiecej >> http://link.interia.pl/f232a



More information about the CMake mailing list