Skip to content

Commit

Permalink
updated cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubii committed Nov 20, 2023
1 parent 383f145 commit 0d50e53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions whisper_cpp_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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_INTERFACE:.>
)

# install ggml header
install(
FILES ${whisper_SOURCE_DIR}/ggml.h
DESTINATION include
)
##############
# end of fixes
##############

ament_export_targets(export_whisper HAS_LIBRARY_TARGET)

Expand Down

0 comments on commit 0d50e53

Please sign in to comment.