add DCMAKE_CXX_STANDARD flag See documentation in CMake. https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html