Closed
Description
Git commit
Latest master branch.
Operating systems
Linux
GGML backends
CPU
Problem description & steps to reproduce
The 'examples' folder is in the llama-cpp root folder. The root CMakeLists does:
add_subdirectory(ggml)
And then in /ggml/CMakeLists.txt there is:
if (GGML_BUILD_EXAMPLES)
add_subdirectory(examples)
endif ()
And there is a CMake error saying:
(add_subdirectory):add_subdirectory given source "examples" which is not an existing
directory.
How is this supposed to work? Isn't the path given to add_subdirectory supposed to be relative to either:
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
At this point when add_subdirectory is called the location of 'examples' folder is one folder up. I'm trying this on Linux Mint, if it matters.
First Bad Commit
No response
Compile command
Command run by VS Code CMake Tools:
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S/media/me/14E610DDE610C142/ProgrammingProjects/Example1 -B/media/me/14E610DDE610C142/ProgrammingProjects/Example1/build -G Ninja --debugger --debugger-pipe /tmp/cmake-debugger-pipe-0ba02e5c-61be-4175-8c41-bb0a06a5a96
Relevant log output
(add_subdirectory):add_subdirectory given source "examples" which is not an existing
directory.