From 7b2e9188ed58cc4a3fb7801e3993cd112045151f Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 2 Apr 2025 13:45:50 +0200 Subject: [PATCH] whisper : add C++17 standard This commit adds the C++17 standard to the CMakeLists.txt file. The motivatiion for this is that ggml sets this and it would seem alright to have the same standard in whisper too. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be6db903..8117436f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,9 @@ include(CheckIncludeFileCXX) set(SOVERSION 1) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + #set(CMAKE_WARN_DEPRECATED YES) set(CMAKE_WARN_UNUSED_CLI YES)