From: Georgi Gerganov Date: Tue, 9 Jul 2024 15:54:18 +0000 (+0300) Subject: cmake : use WHISPER_EXTRA_FLAGS (#2294) X-Git-Tag: upstream/1.7.4~575 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d207c6882247984689091ae9d780d2e51eab1df7;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : use WHISPER_EXTRA_FLAGS (#2294) --- 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)