From: Natsu Date: Fri, 5 Jul 2024 14:29:35 +0000 (+0800) Subject: cmake : add GGML_BUILD and GGML_SHARED macro definitions (llama/8281) X-Git-Tag: upstream/0.0.1642~541 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=afc9c40896b28778cd261cf6d18357d44e1cba3d;p=pkg%2Fggml%2Fsources%2Fggml cmake : add GGML_BUILD and GGML_SHARED macro definitions (llama/8281) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8d96a04b..c6694df6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()