Liu Song’s Projects


~/Projects/whisper.cpp

git clone https://code.lsong.org/whisper.cpp

Commit

Commit
a2eeb941f6724bead143c541b482807c0fdd34fa
Author
Georgi Gerganov <[email protected]>
Date
2022-11-03 20:18:57 +0200 +0200
Diffstat
 CMakeLists.txt | 5 +++++

cmake : fix passing GGML_PERF compile option


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7dbc476e1e8f9a6ffad60f6ddd4fdceb5b2a90c4..295b55ad311ac8020bf11fa9d94bc85fab74cbdb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,7 @@ else()
     option(WHISPER_SUPPORT_OPENBLAS    "whisper: support for OpenBLAS" OFF)
 endif()
 
+cmake_minimum_required (VERSION 3.0)
 option(WHISPER_PERF                    "whisper: enable perf timings"          OFF)
 
 # sanitizers
@@ -149,6 +150,10 @@         else()
             set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mavx -mavx2 -mfma -mf16c")
         endif()
     endif()
+endif()
+
+if (WHISPER_PERF)
+    set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_PERF)
 endif()
 
 #