]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : fix passing GGML_PERF compile option
authorGeorgi Gerganov <redacted>
Thu, 3 Nov 2022 18:18:57 +0000 (20:18 +0200)
committerGeorgi Gerganov <redacted>
Thu, 3 Nov 2022 18:19:06 +0000 (20:19 +0200)
CMakeLists.txt

index 7dbc476e1e8f9a6ffad60f6ddd4fdceb5b2a90c4..295b55ad311ac8020bf11fa9d94bc85fab74cbdb 100644 (file)
@@ -47,7 +47,7 @@ else()
     option(WHISPER_SUPPORT_OPENBLAS    "whisper: support for OpenBLAS" OFF)
 endif()
 
-option(WHISPER_PERF                    "whisper: enable perf timings"          OFF)
+option(WHISPER_PERF                    "whisper: enable perf timings" OFF)
 
 # sanitizers
 
@@ -151,6 +151,10 @@ else()
     endif()
 endif()
 
+if (WHISPER_PERF)
+    set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_PERF)
+endif()
+
 #
 # whisper - this is the main library of the project
 #