Re: [CMake] Marking a library dependency from within a library.

2007-11-30 Thread Pau Garcia i Quiles
Quoting Ilya Shvetsov <[EMAIL PROTECTED]>: What you are asking for is essentially what FIND_PACKAGE provides. Create your own FindlibB.cmake which sets libB_FOUND to true and libB_LIBRARY to the filename (i. e. /usr/lib/libB.so or whatever), then TARGET_LINK_LIBRARIES(execC libA ${libB_LIBR

Re: [CMake] Marking a library dependency from within a library.

2007-11-30 Thread Ilya Shvetsov
I am not sure if Josef Karthauser was referring to such a situation. This case occurs quite often in my projects and so far I found no way how to fomulate these dependencies in an elegant way. Anyone who can help me (and probably Josef Karthauser)? I would like also to have an explanation

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread KSpam
Bill, Thanks for the clarification. This will simplify my build system a great deal! Justin On Thursday 18 October 2007 12:23:49 Bill Hoffman wrote: > The example is this: > add_library(libB) > add_library(libA) > target_link_libraries(libA libB) > add_executable(excC) > target_link_librareis(

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Bill Hoffman
KSpam wrote: Bill, Yes, where you create libA, you add this: target_link_libraries(libA libB) CMake will automatically chain. Has this feature recently changed? I thought that adding "target_link_libraries(libA libB)" would explicitly link libB to libA. Often when I am static linking, I

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread KSpam
Bill, > Yes, where you create libA, you add this: > > target_link_libraries(libA libB) > > CMake will automatically chain. Has this feature recently changed? I thought that adding "target_link_libraries(libA libB)" would explicitly link libB to libA. Often when I am static linking, I do not w

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Christian Hoffmann
On Thursday 18 October 2007 13:47, Bill Hoffman wrote: > Josef Karthauser wrote: > > I have a library (libA), which depends upon another library (libB) for > > its implementation.I also have an executable (execC) which uses > > LibA. Is there an easy way of getting LibB added to the list of >

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Bill Hoffman
Josef Karthauser wrote: I have a library (libA), which depends upon another library (libB) for its implementation.I also have an executable (execC) which uses LibA. Is there an easy way of getting LibB added to the list of dependencies, so what when I do Add_Executable(exeC) Tar

[CMake] Marking a library dependency from within a library.

2007-10-18 Thread Josef Karthauser
I have a library (libA), which depends upon another library (libB) for its implementation.I also have an executable (execC) which uses LibA. Is there an easy way of getting LibB added to the list of dependencies, so what when I do Add_Executable(exeC) Target_Link_Libraries(exeC libA)