Browse Source

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

Natsu 1 năm trước cách đây
mục cha
commit
1d894a790e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      ggml/src/CMakeLists.txt

+ 1 - 0
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()