Closed coderiderlin closed 3 months ago
well,I found that the CXX_STANDARD was set to 17 in the CMakeLists.txt . After changing it to 20, the compilation proceeded successfully.
note:there is a comment above this line ,however ,it's not working on my situation.
use C++17 because compilation with c++20 is slower
# use C++17 because compilation with c++20 is slower
set_target_properties(${LIBNAME} PROPERTIES
CXX_STANDARD 20 # problem caused by here
CXX_STANDARD_REQUIRED True
exception detail: