On Monday 31 August 2009, Eike Kroemer wrote:
> Hi Eric,
>
> > Variable values shoud be retrieve with curly brace, i.e.
> >
> > $LIBS --> ${LIBS}
>
> Yick, I had done that but not cited it correctly in my mail, sorry about
> that.
>
> > Then when you have a list of something you usually use LIST(APPEND
> >
> > LIST(APPEND LIBS "libN")
> >
> > even if
> >
> > SET(LIBS "${LIBS} libN") should work as well.
>
> list(APPEND ...) does the trick (while set doesn't), thanks!
SET(LIBS "${LIBS} libN") should give you one string "libA;libB libN", so you
would link against "-llibA;libB libN" I think.
SET(LIBS ${LIBS} libN)
should work.
Alex
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake