ggerganov commited on
Commit
81fa005
·
unverified ·
1 Parent(s): e6c1269

cmake : use WHISPER_EXTRA_FLAGS (#2294)

Browse files
Files changed (1) hide show
  1. 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)