Skip to content

Commit

Permalink
cmake : add GGML_BUILD and GGML_SHARED macro definitions (#8281)
Browse files Browse the repository at this point in the history
  • Loading branch information
akemimadoka authored Jul 5, 2024
1 parent 1f3e1b6 commit 1d894a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ggml/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1d894a7

Please sign in to comment.