Spaces:
Running
Running
cmake : use WHISPER_EXTRA_FLAGS (#2294)
Browse files- src/CMakeLists.txt +4 -0
src/CMakeLists.txt
CHANGED
|
@@ -123,6 +123,10 @@ set_target_properties(whisper PROPERTIES
|
|
| 123 |
target_include_directories(whisper PUBLIC . ../include)
|
| 124 |
target_compile_features (whisper PUBLIC cxx_std_11) # don't bump
|
| 125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
target_link_libraries(whisper PUBLIC ggml)
|
| 127 |
|
| 128 |
if (WHISPER_COREML)
|
|
|
|
| 123 |
target_include_directories(whisper PUBLIC . ../include)
|
| 124 |
target_compile_features (whisper PUBLIC cxx_std_11) # don't bump
|
| 125 |
|
| 126 |
+
if (WHISPER_EXTRA_FLAGS)
|
| 127 |
+
target_compile_options(whisper PRIVATE ${WHISPER_EXTRA_FLAGS})
|
| 128 |
+
endif()
|
| 129 |
+
|
| 130 |
target_link_libraries(whisper PUBLIC ggml)
|
| 131 |
|
| 132 |
if (WHISPER_COREML)
|