From: Andrei Date: Fri, 15 Sep 2023 08:07:40 +0000 (-0400) Subject: cmake : fix llama.h location when built outside of root directory (#3179) X-Git-Tag: gguf-v0.4.0~70 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=76164fe2e65c058e9ee2c3afd0ad6b182ca57e25;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake : fix llama.h location when built outside of root directory (#3179) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index eac5799a..346ea8d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -723,7 +723,7 @@ set(GGML_PUBLIC_HEADERS "ggml.h" set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}") install(TARGETS ggml PUBLIC_HEADER) -set_target_properties(llama PROPERTIES PUBLIC_HEADER llama.h) +set_target_properties(llama PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/llama.h) install(TARGETS llama LIBRARY PUBLIC_HEADER) install(