cmake : use WHISPER_EXTRA_FLAGS (#2294)

This commit is contained in:
Georgi Gerganov 2024-07-09 18:54:18 +03:00 committed by GitHub
parent 16d72504fe
commit d207c68822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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)