CMakeLists: base std::variantC++17, specificTest std::formatC++20

This commit is contained in:
HanishKVC 2024-05-15 12:56:05 +05:30
parent 4a15989000
commit dc03a7134a
2 changed files with 4 additions and 1 deletions

View file

@ -837,7 +837,7 @@ function(get_flags CCID CCVER)
set(GF_CXX_FLAGS ${CXX_FLAGS} PARENT_SCOPE)
endfunction()
list(APPEND CXX_FLAGS -std=c++20)
list(APPEND CXX_FLAGS -std=c++17)
if (LLAMA_FATAL_WARNINGS)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")

View file

@ -119,6 +119,9 @@ llama_target_and_test(test-chat-template.cpp)
llama_target_and_test(test-chat-template-chaton.cpp)
llama_target_and_test(test-chaton-groupkv.cpp)
llama_target_and_test(test-chaton-simpcfg.cpp)
#target_compile_features(test-chaton-simpcfg PUBLIC cxx_std_20)
target_compile_options(test-chaton-simpcfg PUBLIC -std=c++20)
llama_target_and_test(test-grammar-parser.cpp)
llama_target_and_test(test-llama-grammar.cpp)