From: Daniel Bevenius Date: Tue, 17 Jun 2025 09:29:48 +0000 (+0200) Subject: examples : set the C++ standard to C++17 for server (#3261) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f3ff80ea8da044e5b8833e7ba54ee174504c518d;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp examples : set the C++ standard to C++17 for server (#3261) This commit updates the server example to use C++17 as the standard. The motivation for this change is that currently the ci-run `ggml-100-mac-m4` is failing when compiling the server example on macOS. The `talk-llama` example also has this setting so it looks like an alright change to make. ggml-ci Refs: https://github.com/ggml-org/ci/tree/results/whisper.cpp/2a/4d6db7d90899aff3d58d70996916968e4e0d27/ggml-100-mac-m4 --- diff --git a/examples/server/CMakeLists.txt b/examples/server/CMakeLists.txt index 4667c307..c082546b 100644 --- a/examples/server/CMakeLists.txt +++ b/examples/server/CMakeLists.txt @@ -1,3 +1,6 @@ +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(TARGET whisper-server) add_executable(${TARGET} server.cpp httplib.h)