diff --git a/tests/tools/onert_train/CMakeLists.txt b/tests/tools/onert_train/CMakeLists.txt index 75dbd2fe352..8de7b9b0e1f 100644 --- a/tests/tools/onert_train/CMakeLists.txt +++ b/tests/tools/onert_train/CMakeLists.txt @@ -6,6 +6,10 @@ if(NOT BUILD_ONERT) return() endif(NOT BUILD_ONERT) +# Use C++17 for onert_train +# TODO: Remove this when we use C++17 for all runtime directories +set(CMAKE_CXX_STANDARD 17) + list(APPEND ONERT_TRAIN_SRCS "src/onert_train.cc") list(APPEND ONERT_TRAIN_SRCS "src/args.cc") list(APPEND ONERT_TRAIN_SRCS "src/nnfw_util.cc")