]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : use WHISPER_EXTRA_FLAGS (#2294)
authorGeorgi Gerganov <redacted>
Tue, 9 Jul 2024 15:54:18 +0000 (18:54 +0300)
committerGitHub <redacted>
Tue, 9 Jul 2024 15:54:18 +0000 (18:54 +0300)
src/CMakeLists.txt

index b87089071ab5504d0f35db92b366b4341b5d01b2..88080f75bdee56d4b3b67c2705c52eeff94681d0 100644 (file)
@@ -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)