From: Georgi Gerganov Date: Thu, 3 Nov 2022 18:18:57 +0000 (+0200) Subject: cmake : fix passing GGML_PERF compile option X-Git-Tag: upstream/1.7.4~1852 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=a2eeb941f6724bead143c541b482807c0fdd34fa;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : fix passing GGML_PERF compile option --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dbc476e..295b55ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 #