[CMake] N projects/packages that depend

klaas.holwerda ngi at klaasholwerda.nl
Thu Aug 5 13:19:37 EDT 2010


Hi,

I have in my repository N projects/packages, that depend on each other.
E.g. project 1 found with find_package( wxDocview ), needs to build 
first, before i can do project2.
I can not generate all at once all cmake binary project files, since the 
project2, call find_package on project 1.

Still i like to have an overall CmakeLists.txt file.

So i started in that top file with find_package( wxDocview), right after 
cmake generated the binary stuff for that wxDocview project, on which 
the second project depends.
If the compiled project is not found i tell the user to first make it.

But when i type make in project 1, it first runs cmake again, and tells 
me the again that i should first make it.
An that is no good.

Well i don't see how to do i :-(.

Does someone know how to handle such a situation?

Thanks,

Klaas




More information about the CMake mailing list