Wireshark mailing list archives
Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt
From: Gerald Combs <gerald () wireshark org>
Date: Fri, 05 Aug 2011 10:07:10 -0700
On 8/5/11 5:01 AM, Joerg Mayer wrote:
On Fri, Aug 05, 2011 at 02:45:09AM +0200, Joerg Mayer wrote:Directory: /trunk/wsutil/ Changes Path Action +1 -1 CMakeLists.txt ModifiedGLIB2_LIBRARIES -> GLIB2_LDFLAGS Is this really the correct place or should this be fixed in FindGLIB2 instead?From /usr/share/cmake/Modules/readme.txt: XXX_LIBRARIES The libraries to link against to use XXX. These should include full paths. This should not be a cache entry. So we'll need to fix the FindGLIB2.cmake as the proper fix.
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. BTW, I added "cmake ." + "make" steps to the Buildbot. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Joerg Mayer (Aug 04)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Joerg Mayer (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Gerald Combs (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Joerg Mayer (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Gerald Combs (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Stig Bjørlykke (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Gerald Combs (Aug 05)
- Re: [Wireshark-commits] rev 38345: /trunk/ /trunk/: CMakeLists.txt /trunk/wsutil/: CMakeLists.txt Joerg Mayer (Aug 05)