skeskinen/bert.cpp

Cannot build " set_target_properties Can not find target to add properties to: ggml"

chrisbward opened this issue · 1 comments

(.venv) ➜  build git:(master) ✗ cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
CMake Error at CMakeLists.txt:190 (add_subdirectory):
  The source directory

    /home/user/Tools/06_MachineLearning/BERT/bert.cpp/ggml

  does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:201 (set_target_properties):
  set_target_properties Can not find target to add properties to: ggml


-- Configuring incomplete, errors occurred!
See also "/home/user/Tools/06_MachineLearning/BERT/bert.cpp/build/CMakeFiles/CMakeOutput.log".

I had to checkout the ggml submodule.... for those that missed it;

cd ./bert.cpp && git submodule update --init --recursive