Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llama_cpp_plugin: fix "Unknown CMake command "FetchContent_Declare" while building for Android #899

Merged
merged 2 commits into from
Apr 2, 2024

Commits on Mar 31, 2024

  1. llama_cpp_plugin: fix "Unknown CMake command "FetchContent_Declare" w…

    …hile building for Android
    
    Build throws the following error -
    keyurmaru@fatman:~/openvino_all$ ${CMAKE_DIR}/bin/cmake   -DCMAKE_BUILD_TYPE=Release   -DANDROID_ABI=x86_64   -DANDROID_PLATFORM=26   -DCMAKE_TOOLCHAIN_FILE=${NDK_DIR}/build/cmake/android.toolchain.cmake   -DCMAKE_MAKE_PROGRAM=${CMAKE_DIR}/bin/ninja   -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF   -DENABLE_CLDNN=OFF   -DENABLE_OPENCV=OFF   -DENABLE_TEMPLATE=OFF   -DENABLE_SAMPLES=OFF   -DENABLE_PLUGINS_XML=ON   -DTHREADING=TBB   -DTBB_DIR=$(realpath oneTBB_install_x86/lib/cmake/TBB)   -DBUILD_nvidia_plugin=OFF   -DBUILD_custom_operations=OFF   -DIE_EXTRA_MODULES=$(realpath openvino_contrib/modules)   -GNinja   -S openvino -B openvino_build_x86
    .
    .
    .
    -- Register llama_cpp_plugin to be built in build-modules/llama_cpp_plugin
    CMake Error at /home/keyurmaru/openvino_all/openvino_contrib/modules/llama_cpp_plugin/CMakeLists.txt:14 (FetchContent_Declare):
      Unknown CMake command "FetchContent_Declare".
    
    Addition of `include(FetchContent)` seemed to resolve the issue
    
    Signed-off-by: keyur2maru <kd2maru@gmail.com>
    keyur-esper authored and keyur2maru committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    3cc4377 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Configuration menu
    Copy the full SHA
    8ca28a6 View commit details
    Browse the repository at this point in the history