Have you tried asking this on the CMake mailing list? Bill and others are super friendly and helpful.
What do you mean by "system" C++ standard though? The default C++ standard used by the C+++ compiler in the user's path? The standard used by the compiler that linked the C++ runtime for that compiler? Even in a Linux distro, what do the answers I'm asking mean when you have multiple compilers installed side-by-side? On Nov 3, 2017 7:32 AM, "Richard Shaw" <hobbes1...@gmail.com> wrote: 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 Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org