I'm writing a library in C++, which supports C++11 or later. Luckily, with C++14 it can avoid certain external dependencies. So, I would like to build it with newer C++ if that's available, but I can live with C++11.
How can I express this in CMake? i.e. how can I tell it to set "the highest C++ standard version that you can manage, but no less than C++11"?