Skip to content

Commit c0a8a62

Browse files
committed
build: resolve LLAMA_DIR to absolute path for FDroid release
1 parent 885c1b3 commit c0a8a62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

smollm/src/main/cpp/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
cmake_minimum_required(VERSION 3.22.1)
22
project("smollm")
33

4-
set(LLAMA_DIR "../../../../llama.cpp")
4+
# Resolve LLAMA_DIR to an absolute path
5+
set(LLAMA_DIR_RELATIVE "../../../../llama.cpp")
6+
get_filename_component(LLAMA_DIR ${LLAMA_DIR_RELATIVE} ABSOLUTE)
7+
58
set(GGML_DIR ${LLAMA_DIR}/ggml)
69
set(COMMON_DIR ${LLAMA_DIR}/common)
710
set(VENDOR_DIR ${LLAMA_DIR}/vendor)

0 commit comments

Comments
 (0)