0%
March 24, 2023

Control C++ Standard Accurately

C++

In the CMakeLists.txt of library folder (or root folder), we add

target_compile_features(lib_name PUBLIC cxx_std_20)

to override, or to determine the language standard in compilation.