CMake supports CXX_STANDARD target property (and therefore automatic -std=c++11) since 3.1 Thanks to noteness for the report