cmake : add GGML_BUILD and GGML_SHARED macro definitions (#8281)

This commit is contained in:
Natsu 2024-07-05 22:29:35 +08:00 committed by Neo Zhang
parent c738f1bc89
commit c667e897e9

View file

@ -1175,4 +1175,5 @@ endif()
if (BUILD_SHARED_LIBS)
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
endif()