From d8d88371f694f293e64a627a59283be2799ac06c Mon Sep 17 00:00:00 2001 From: SeungHui Youn <61981457+zetwhite@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:29:53 +0900 Subject: [PATCH] [tools/onert_train] Update onert_train to use C++17 (#12529) This PR updates onert_train to use C++17. ONE-DCO-1.0-Signed-off-by: SeungHui Youn --- tests/tools/onert_train/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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")