From d342e4e7d44607a159a238c55e125c9f8e57bc2b Mon Sep 17 00:00:00 2001 From: Jan Wassenberg Date: Tue, 17 Jun 2025 06:53:02 -0700 Subject: [PATCH] Also add CMAKE_CXX_STANDARD in examples' CMake files PiperOrigin-RevId: 772454497 --- examples/hello_world/CMakeLists.txt | 1 + examples/simplified_gemma/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/hello_world/CMakeLists.txt b/examples/hello_world/CMakeLists.txt index 2e1c36e..3b3b61e 100644 --- a/examples/hello_world/CMakeLists.txt +++ b/examples/hello_world/CMakeLists.txt @@ -14,6 +14,7 @@ cmake_minimum_required(VERSION 3.11) project(hello_world) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) include(FetchContent) diff --git a/examples/simplified_gemma/CMakeLists.txt b/examples/simplified_gemma/CMakeLists.txt index b6af3e8..4a5747f 100644 --- a/examples/simplified_gemma/CMakeLists.txt +++ b/examples/simplified_gemma/CMakeLists.txt @@ -14,6 +14,7 @@ cmake_minimum_required(VERSION 3.11) project(simplified_gemma) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) include(FetchContent)