cmake use clang c++ 11 code example Example: cmake define standard c++ set_property(TARGET [target] PROPERTY CXX_STANDARD [c++ version])