Move add_library(llama, ...) to above first_use
This commit is contained in:
parent
303f5809f1
commit
e1f0de2fa1
1 changed files with 7 additions and 5 deletions
|
@ -202,6 +202,12 @@ if (LLAMA_CUBLAS)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_library(llama
|
||||||
|
llama.cpp
|
||||||
|
llama.h
|
||||||
|
llama-util.h
|
||||||
|
)
|
||||||
|
|
||||||
if (LLAMA_METAL)
|
if (LLAMA_METAL)
|
||||||
find_library(FOUNDATION_LIBRARY Foundation REQUIRED)
|
find_library(FOUNDATION_LIBRARY Foundation REQUIRED)
|
||||||
find_library(METAL_FRAMEWORK Metal REQUIRED)
|
find_library(METAL_FRAMEWORK Metal REQUIRED)
|
||||||
|
@ -419,11 +425,7 @@ if (BUILD_SHARED_LIBS)
|
||||||
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(llama
|
|
||||||
llama.cpp
|
|
||||||
llama.h
|
|
||||||
llama-util.h
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(llama PUBLIC .)
|
target_include_directories(llama PUBLIC .)
|
||||||
target_compile_features(llama PUBLIC cxx_std_11) # don't bump
|
target_compile_features(llama PUBLIC cxx_std_11) # don't bump
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue