From d207c6882247984689091ae9d780d2e51eab1df7 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 9 Jul 2024 18:54:18 +0300 Subject: [PATCH] cmake : use WHISPER_EXTRA_FLAGS (#2294) --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b8708907..88080f75 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -123,6 +123,10 @@ set_target_properties(whisper PROPERTIES target_include_directories(whisper PUBLIC . ../include) target_compile_features (whisper PUBLIC cxx_std_11) # don't bump +if (WHISPER_EXTRA_FLAGS) + target_compile_options(whisper PRIVATE ${WHISPER_EXTRA_FLAGS}) +endif() + target_link_libraries(whisper PUBLIC ggml) if (WHISPER_COREML)