Explorar el Código

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

Natsu hace 1 año
padre
commit
1d894a790e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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()