On Thu, Apr 25, 2013 at 5:36 PM, Bruce Perens <[email protected]> wrote:
> On 4/25/2013 2:29 PM, Richard Shaw wrote:
>
>
> Unfortunately automatic static linking of wxWidgets is not possible
> because the library names and cflags are not necessarily known in advance
> like with the smaller libraries, which is is why they supply a
> configuration binary, wx-config.
>
> Wouldn't something like this work?
>
> FIND_PROGRAM( CMAKE_WX_CONFIG wx-config ../wx/bin ../../wx/bin )
> SET( CMAKE_WX_CXX_FLAGS "`${CMAKE_WX_CONFIG} --cxxflags`" )
> SET( WXWINDOWS_LIBRARIES "`${CMAKE_WX_CONFIG} --libs`" )
>
>
The first line definitely will not because all the "cmake" commands are run
(evaluated) at configuration, but wx-config doesn't even exist yet (or is
even downloaded yet). The second line will probably not either since it
would be evaluated during configuration.
The ONLY way I can think of getting this to work would be to somehow get a
$(/path/to/wx-config --libs base net aui http <etc>) into the makefile
directly which would be evaluated AFTER wxWidgets is built... I'll sleep on
it.
Richard
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2