KafuuChino commited on
Commit
a8f9bda
·
1 Parent(s): 08501f8

cmake : add GGML_BUILD and GGML_SHARED macro definitions (llama/8281)

Browse files
Files changed (1) hide show
  1. ggml/src/CMakeLists.txt +1 -0
ggml/src/CMakeLists.txt CHANGED
@@ -1175,4 +1175,5 @@ endif()
1175
 
1176
  if (BUILD_SHARED_LIBS)
1177
  set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
 
1178
  endif()
 
1175
 
1176
  if (BUILD_SHARED_LIBS)
1177
  set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
1178
+ target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
1179
  endif()