Skip to content

Commit 1d894a7

Browse files
authored
cmake : add GGML_BUILD and GGML_SHARED macro definitions (ggml-org#8281)
1 parent 1f3e1b6 commit 1d894a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,4 +1175,5 @@ endif()
11751175

11761176
if (BUILD_SHARED_LIBS)
11771177
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
1178+
target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
11781179
endif()

0 commit comments

Comments
 (0)