From 1d894a790e62b10d066adcdd9c9feb559455b7d2 Mon Sep 17 00:00:00 2001 From: Natsu Date: Fri, 5 Jul 2024 22:29:35 +0800 Subject: [PATCH] cmake : add GGML_BUILD and GGML_SHARED macro definitions (#8281) --- ggml/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 8d96a04b5..c6694df67 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/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()