fix: resolve naming conflict while llama.cpp and sd.cpp both build (#351)

This commit is contained in:
Yu Xing
2024-08-27 09:14:41 -07:00
committed by GitHub
parent dc0882cdc9
commit 6c88ad3fd6

View File

@@ -102,7 +102,10 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
add_definitions(-DGGML_MAX_NAME=128) add_definitions(-DGGML_MAX_NAME=128)
# deps # 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) add_subdirectory(thirdparty)