]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
examples : fix executable example targets (#3600)
authorPeter A. <redacted>
Tue, 13 Jan 2026 07:08:18 +0000 (08:08 +0100)
committerGitHub <redacted>
Tue, 13 Jan 2026 07:08:18 +0000 (08:08 +0100)
* cmake:
    - added `whisper-` prefix to unprefixed targets: `quantize`, `lsp`,
      `vad-speech-segments`
    - added `install(TARGETS ${TARGET} RUNTIME)` where it was missing

Signed-off-by: Peter A. <redacted>
* .github/workflows/build.yml: quantize -> whisper-quantize

Signed-off-by: Peter A. <redacted>
---------

Signed-off-by: Peter A. <redacted>
.github/workflows/build.yml
examples/lsp/CMakeLists.txt
examples/quantize/CMakeLists.txt
examples/talk-llama/CMakeLists.txt
examples/vad-speech-segments/CMakeLists.txt
src/CMakeLists.txt

index 3643aaf279c39c19fd484117450cb0b80b48a022..5c1cf93ba2aa26e4103bfd303676bdaefe2ee7f8 100644 (file)
@@ -1252,7 +1252,7 @@ jobs:
           ./models/download-ggml-model.sh tiny.en
           cmake -B build
           cmake --build build --config Release
-          ./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
+          ./build/bin/whisper-quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
 
   release:
     if: ${{ github.event.inputs.create_release == 'true' || github.event.inputs.pre_release_tag != '' || startsWith(github.ref, 'refs/tags/v') }}
index 15b5be18783280cd5c45203209b474c0dc6c1b74..6dd96f53f82feb86df6454cdaef4790b7b1cd7c1 100644 (file)
@@ -1,9 +1,10 @@
 if (WHISPER_SDL2)
     # stream
-    set(TARGET lsp)
+    set(TARGET whisper-lsp)
     add_executable(${TARGET} lsp.cpp)
 
     include(DefaultTargetOptions)
 
     target_link_libraries(${TARGET} PRIVATE common json_cpp common-sdl whisper ${CMAKE_THREAD_LIBS_INIT})
+    install(TARGETS ${TARGET} RUNTIME)
 endif ()
index 8d2d2e4d487676e7a3c0843508aedea7adb51c07..aa2828e3e45493bd7afc72d1a072ed2398de334b 100644 (file)
@@ -1,6 +1,7 @@
-set(TARGET quantize)
+set(TARGET whisper-quantize)
 add_executable(${TARGET} quantize.cpp)
 
 include(DefaultTargetOptions)
 
 target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})
+install(TARGETS ${TARGET} RUNTIME)
index deeab482190ded3bc629de6ffd4205afbc1ffd73..cac46705d6c82695845dd31064a0b5194e331f0a 100644 (file)
@@ -36,6 +36,7 @@ if (WHISPER_SDL2)
     target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
 
     target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+    install(TARGETS ${TARGET} RUNTIME)
 
     if(WIN32)
         # It requires Windows 8.1 or later for PrefetchVirtualMemory
index da685244adbc6fdda90149823e19faa9fe761c35..857b88c9a59739bd5e88ad83a54712746b079d00 100644 (file)
@@ -1,4 +1,4 @@
-set(TARGET vad-speech-segments)
+set(TARGET whisper-vad-speech-segments)
 add_executable(${TARGET} speech.cpp)
 
 include(DefaultTargetOptions)
index 6030072dbd88c7de08733f4c35cce38c3ec1435a..095a2791de503dc54b6b15a5ddfef763994e6204 100644 (file)
@@ -79,6 +79,7 @@ if (WHISPER_COREML)
         )
 
     set_target_properties(${TARGET} PROPERTIES FOLDER "libs")
+    install(TARGETS ${TARGET} LIBRARY)
 endif()
 
 if (WHISPER_OPENVINO)