On Fri, Aug 05, 2011 at 10:07:10AM -0700, Gerald Combs wrote:
> I'm trying to use CMake with MacPorts, with GLib, GTK+, et al residing
> in /opt/local. After running "cmake ." I end up with the following in
> CMakeCache.txt:
>
> GLIB2_LDFLAGS:INTERNAL=-L/opt/local/lib;-lglib-2.0;-lintl;-liconv
> GLIB2_LIBRARIES:INTERNAL=glib-2.0;intl;iconv
>
> Compilation fails with
>
> set(wsutil_LIBS
> ${GLIB2_LIBRARIES}
> )
>
> It looks like this is because wsutil/CMakeFiles/wsutil.dir/link.txt is
> missing "-L/opt/local/lib". When I change GLIB2_LIBRARIES to
> GLIB2_LDFLAGS link.txt gets created with the proper flags and
> compilation works.
Yes, I have undone your change and checked in something that I hope is
the "right" fix to FindGLIB2 earlier today.
> BTW, I added "cmake ." + "make" steps to the Buildbot.
Thanks!
Joerg
--
Joerg Mayer <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.