mirror of
https://github.com/RYDE-WORK/llama.cpp.git
synced 2026-02-01 21:23:14 +08:00
cmake : add GGML_BUILD and GGML_SHARED macro definitions (#8281)
This commit is contained in:
parent
1f3e1b66e2
commit
1d894a790e
@ -1175,4 +1175,5 @@ endif()
|
|||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
|
target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user