cmake : fix llama.h location when built outside of root directory (#3179)

This commit is contained in:
Andrei 2023-09-15 04:07:40 -04:00 committed by GitHub
parent c2ab6fe661
commit 76164fe2e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(