Hello,

As mentioned in a previous thread, I haven't had time to monitor this
list in the past few weeks. Now, I'm trying to parse through 117
threads or so finding anything related to FindwxWidgets, since I'm the
maintainer.

I found this and for archival purposes, my reply below.

On 8/27/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   I am trying to use FindwxWidgets in the latest cmake and it seems it
> is not backward compatible. The cmake code is trying to do something
> like:
>
> $ wx-config --libs gl,adv
>
>   But at least on my machine this is returning an error. One should run 
> instead:
>
> $ wx-config --libs
> -pthread -lwx_gtk-2.4
>
> Using:
>
> $ wx-config --version
> 2.4.2

The problem is that the wx-config version that you are using, is older
(2.4.2). In newer versions of wxWidgets the wx-config supports this. I
will try to add support for this into the FindwxWidgets module, but I
can't merely change it to:

wx-config --libs

That is, because wxWidgets now builds multiple modular libraries by
default and not a monolithic build. By doing the above, it would link
to all libraries, when the objective of building the modular libraries
is precisely linking to only the ones you need. For example look at
the output below for the different calls:

[EMAIL PROTECTED]:~> wx-config --libs
-L/usr/local/lib -pthread   -L/usr/X11R6/lib   -lwx_gtk2_aui-2.8
-lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8
-lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8
-lwx_base_net-2.8 -lwx_base-2.8

[EMAIL PROTECTED]:~> wx-config --libs gl,base
-L/usr/local/lib -pthread   -L/usr/X11R6/lib   -lwx_gtk2_gl-2.8 -lwx_base-2.8

I will see if I can detect that it is an older version (2.4.2) and
then call (wx-config --libs) rather than (wx-config --libs ...).

Hope this helps and sorry for such a late reply.

--Miguel
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to