[CMake] Dependencies between static libraries
Jörg Kreuzberger
j.kreuzberger at procitec.de
Mon May 26 03:33:06 EDT 2014
Hi!
i had a problem between depencendies of static libraris. Due to the used tools (qt, moc, uic) a library depends on another library, especially on header files generated by uic.
This is a litte bit a broken design, but cannot fix it currently.
On massive parallel builds ( 8 cores on ssd ) i get compiliation issues (missing header file) or broken dependencies ( header is updated later, lib already build).
So i decided to use add_dependencies() macro for cmake to "clarify" these dependencies. Since then it seems that no more failure occured.
Is this a correct way to handle this issue or are other solutions more reliable?
Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk (Vorsitzender), Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen
This e-mail may contain confidential and/or legally protected information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
Thank you!
More information about the CMake
mailing list