[CMake] cmake dependency checking
Brandon Van Every
bvanevery at gmail.com
Tue Jan 8 16:52:54 EST 2008
On Jan 8, 2008 1:47 PM, Ajay Divekar <aj.divekar at gmail.com> wrote:
> Hi,
>
> I have the following directory structure
>
> ProjName
> |
> -> src
> |
> ->lib
> |
> ->app
>
>
> if I execute cmake -DBUILD_TYPE=Debug at the app level
I don't have any experience running CMake from subdirectories of a
source tree. I'll let others comment on that.
> then the linking
> fails with missing lib. Obviously this because the lib is not compiled. Is
> there any way for me to detect that when I do cmake in the app folder that
> lib is not compiled and then compile for the linking to work.
Do you have a TARGET_LINK_LIBRARIES command for app, so that lib will be linked?
> BTW if I do
> cmake @ the src level then everything works fine.
Cheers,
Brandon Van Every
More information about the CMake
mailing list