Modify wxFormBuilder meson/ninja build?

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.

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, br...@bradcan.homelinux.com 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.