On Saturday 22 Sep 2007 1:45:26 am Juan Sanchez wrote:
> How do you add an externally library for linking into a target?  I am
> getting something like this from TARGET_LINK_LIBRARIES?
>
> CMake Error: Attempt to add link library "/bar/linux-x86/opt/foo.a" to
> target "waterlooApps" which is not built by this project.

waterlooApps must be a declared target before calling TARGET_LINK_LIBRARIES()

ADD_EXECUTABLE(waterlooApps ${waterlooApps_SRCS})
TARGET_LINK_LIBRARIES(waterlooApps foo)
-- 
Cheers!
kitts
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to