diff --git a/backend/go/omnivoice-cpp/CMakeLists.txt b/backend/go/omnivoice-cpp/CMakeLists.txt index 5d89cefb7..8174b6e08 100644 --- a/backend/go/omnivoice-cpp/CMakeLists.txt +++ b/backend/go/omnivoice-cpp/CMakeLists.txt @@ -5,6 +5,12 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(OMNIVOICE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sources/omnivoice.cpp) +# omnivoice.cpp 3ac485d uses CMAKE_SOURCE_DIR to locate ggml/, which is +# wrong when omnivoice is nested under add_subdirectory (CMAKE_SOURCE_DIR +# is the top-level project, not this CMakeLists.txt). Override it here +# until the upstream fix (ServeurpersoCom/omnivoice.cpp#20) is merged. +set(GGML_SOURCE_DIR "${OMNIVOICE_DIR}/ggml" CACHE PATH "ggml source tree") + # Override upstream's CMAKE_CUDA_ARCHITECTURES before add_subdirectory. if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) set(CMAKE_CUDA_ARCHITECTURES "75-virtual;80-virtual;86-real;89-real") diff --git a/backend/go/omnivoice-cpp/Makefile b/backend/go/omnivoice-cpp/Makefile index 7446312f1..1a57f49ef 100644 --- a/backend/go/omnivoice-cpp/Makefile +++ b/backend/go/omnivoice-cpp/Makefile @@ -8,7 +8,7 @@ JOBS?=$(shell nproc --ignore=1) # omnivoice.cpp version OMNIVOICE_REPO?=https://github.com/ServeurpersoCom/omnivoice.cpp -OMNIVOICE_VERSION?=ae9dd24b6a5ff72bf50519490092ad14c64627a8 +OMNIVOICE_VERSION?=3ac485d0688fc684f5dcf2c95283b745220f9dcc SO_TARGET?=libgomnivoicecpp.so CMAKE_ARGS+=-DBUILD_SHARED_LIBS=OFF