Commit 91c1e144 for whisper.cpp
commit 91c1e144ff944f106e1b013efc06a57612fb6127
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Date: Thu Nov 19 14:06:20 2026 +0100
examples : remove explict version from test-cmake (#4172)
This commit removes the whisper version test-cmake and instead uses the
version that is supplied by CMAKE_PREFIX_PATH.
The motivation for this is to avoid issues when bumping major versions.
diff --git a/examples/test-cmake/CMakeLists.txt b/examples/test-cmake/CMakeLists.txt
index 9f21775b..ce3b7cd9 100644
--- a/examples/test-cmake/CMakeLists.txt
+++ b/examples/test-cmake/CMakeLists.txt
@@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
# request a version that is satisfied by both dev (1.9.2-dev) and release (1.9.2) installs
# (find_package does not accept a pre-release version as an argument)
-find_package(whisper 1.9.2 REQUIRED)
+find_package(whisper CONFIG REQUIRED PATHS ${CMAKE_PREFIX_PATH} NO_DEFAULT_PATH)
add_executable(test-cmake test-cmake.cpp)