From 6a437ba5d623a5ce19685a9781547b3ec8b44653 Mon Sep 17 00:00:00 2001 From: akemimadoka Date: Thu, 4 Jul 2024 00:11:06 +0800 Subject: [PATCH] fix: add missing macro definitions --- ggml/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 08b71d410..a86e9f39d 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()