Re: [CMake] cmake dependency checking

2008-01-08 Thread Brandon Van Every
On Jan 8, 2008 1:47 PM, Ajay Divekar <[EMAIL PROTECTED]> 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
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake dependency checking

2008-01-08 Thread Ajay Divekar
Hi,

I have the following directory structure

ProjName
   |
   -> src
 |
 ->lib
 |
 ->app


if I execute cmake -DBUILD_TYPE=Debug at the app level 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. BTW if I do
cmake @ the src level then everything works fine.

Waiting for your replies and thanking you in advance.


Regards,

Aj
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake