edrosten / gvars

Lightweight and simple configuration library for C++ programs.
Other
29 stars 22 forks source link

Can not build against TooN version 3 #6

Open FlorianFranzen opened 7 years ago

FlorianFranzen commented 7 years ago

It is currently not possible to build gvars against version 3 of TooN, because gvars is not build with C++14 enabled and none of the TooN headers can be important without compile errors.

To fix that for me it was as simple as adding the following to configure.ac (and running autoconf again):

TEST_AND_SET_CXXFLAG(-std=c++14)

A clean upstream fix would probably entail a separate TooN 3 check instead of always compiling with C++14 enabled as long as the compiler supports it. I just thought I post my solution as well, in case somebody is looking for a quick fix.