Skip to content

Commit

Permalink
fix: resolve naming conflict while llama.cpp and sd.cpp both build (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
xyyimian authored Aug 27, 2024
1 parent dc0882c commit 6c88ad3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
add_definitions(-DGGML_MAX_NAME=128)

# deps
add_subdirectory(ggml)
# Only add ggml if it hasn't been added yet
if (NOT TARGET ggml)
add_subdirectory(ggml)
endif()

add_subdirectory(thirdparty)

Expand Down

0 comments on commit 6c88ad3

Please sign in to comment.