[Cmake] Confused by dependencies

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Aug 1 12:28:30 EDT 2001


Please ignore my previous posts. I got my Depend_libs and my Link_libs 
lists muddled up and hence the confusion

JB


At 16:24 01/08/2001, John Biddiscombe wrote:
>If I'm building a library and an executable
>
>SOURCE_FILES(...list here)
>ADD_LIBRARY(a library)
>
>then
>ADD_EXECUTABLE(an executable).
>TARGET_LINK_LIBRARIES(an executable - a library - some other libraries too)
>
>and the executable is dependent upon the library - as well as several 
>others. How do I tell it that it is dependent on "a library", but just to 
>link with the others regardless. It seems as though no dependency 
>information exists when the above commands are carried out.
>
>JB
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake





More information about the CMake mailing list