danbev commited on
Commit
5257653
·
unverified ·
1 Parent(s): 0931e4a

examples : set the C++ standard to C++17 for server (#3261)

Browse files

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

Files changed (1) hide show
  1. examples/server/CMakeLists.txt +3 -0
examples/server/CMakeLists.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  set(TARGET whisper-server)
2
  add_executable(${TARGET} server.cpp httplib.h)
3
 
 
1
+ set(CMAKE_CXX_STANDARD 17)
2
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
3
+
4
  set(TARGET whisper-server)
5
  add_executable(${TARGET} server.cpp httplib.h)
6