[CMake] Problem with link target over multiple libs
Philippe Fortier
pfortier at resonantmedical.com
Tue Dec 21 08:12:03 EST 2004
Hi all,
I am using CMake for quite a while now, but I just realized a weird
behavior yesterday. I have three libraries :
staticA
DynB
DynC
In my cmakelists.txt of DynB, I link with library staticA. In the
cmakelists.txt of DyncC, I link with DynB, when I generate my VC 7.net
solution and projects files, DynC library is told to link with staticA
wich cause an error because this library does not know where staticA is.
I could fix the problem by specifying the location of staticA in the
cmakelists.txt of DynC, but that is not correct, DynC should not need to
no anything about staticA.
Is it an error in CMake or a feature ? If so, could you just explain why
CMake generates linking dependencies like that ?
Thank you very much,
Philippe Fortier
Software Developer
Resonant Medical
More information about the CMake
mailing list