Modify wxFormBuilder meson/ninja build?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Modify wxFormBuilder meson/ninja build?

bradcan
I'm trying to build wxFormBuilder which uses meson/ninja, but my compiler, Linux GCC C++, wants CXXFLAGS instead of CFLAGS

Much searching and heartbreak has resulted in zero. Plenty of advice, but nothing that works with meson/ninja.

Is there a way to make meson/ninja to use CXXFLAGS ?

Sorry if this post is duplicate with my request to the ninja group.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Modify wxFormBuilder meson/ninja build?

bradcan
As ever answering my own questions:

Simple, add the following line to the meson.build file:
add_global_arguments('-std=c++17', language : 'cpp')
then all the right flags are added to the compile commands during the ninja build.

But meson configuration won't run a second time, so I just delete the install directory and replace it from a clean backup.

Yes, RTFM, I got a clue from the documentation, but just like all previous build systems the docs are not for the faint of heart.


On Saturday, August 11, 2018 at 3:20:13 AM UTC+1, [hidden email] wrote:
I'm trying to build wxFormBuilder which uses meson/ninja, but my compiler, Linux GCC C++, wants CXXFLAGS instead of CFLAGS

Much searching and heartbreak has resulted in zero. Plenty of advice, but nothing that works with meson/ninja.

Is there a way to make meson/ninja to use CXXFLAGS ?

Sorry if this post is duplicate with my request to the ninja group.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.