From 0d50e53a59a2b279d21310198b8d6ed449f71149 Mon Sep 17 00:00:00 2001 From: mhubii Date: Mon, 20 Nov 2023 10:30:35 +0000 Subject: [PATCH] updated cmake --- whisper_cpp_vendor/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/whisper_cpp_vendor/CMakeLists.txt b/whisper_cpp_vendor/CMakeLists.txt index 1569aee..504e8ed 100644 --- a/whisper_cpp_vendor/CMakeLists.txt +++ b/whisper_cpp_vendor/CMakeLists.txt @@ -21,12 +21,23 @@ FetchContent_Declare( FetchContent_MakeAvailable(whisper) +####################################################################### # note that target properties need change as whisper.cpp CMake is buggy +####################################################################### set_target_properties( whisper PROPERTIES INTERFACE_INCLUDE_DIRECTORIES $ +) + +# install ggml header +install( + FILES ${whisper_SOURCE_DIR}/ggml.h + DESTINATION include ) +############## +# end of fixes +############## ament_export_targets(export_whisper HAS_LIBRARY_TARGET)