Something I've been thinking about in general (Not just OIIO) but haven't
had any time to work on...

CMake doesn't handle the situation well where the default C++ standard is
higher than than the minimum the project wants.

In the case of Fedora, C++14 is the standard on version 26 and up, in that
case we really don't want to force C++11 unless it's a problem because all
the library dependencies should have been built as C++14.

It would be nice if CMAKE provided a CPP_STD_MINIMUM or something like that
and would only add the -std= flag if it's needed...

There's got to be a way for CMake to query (or test?) the system to see
what C++ standard is being used and then add a conditional to use -std=...
only if required.

Thoughts?

Thanks,
Richard
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to