mirror of https://github.com/alibaba/MNN.git
fix CoreML when MNN_SEP_BUILD=OFF
This commit is contained in:
parent
a97076e60f
commit
174f09b121
|
@ -478,8 +478,12 @@ endif()
|
|||
IF(MNN_COREML)
|
||||
add_definitions(-DMNN_COREML_ENABLED=1)
|
||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/source/backend/coreml/)
|
||||
|
||||
IF(MNN_SEP_BUILD)
|
||||
list(APPEND MNN_DEPS MNNCoreML)
|
||||
ELSE()
|
||||
list(APPEND MNN_OBJECTS_TO_LINK $<TARGET_OBJECTS:MNNCoreML>)
|
||||
ENDIF()
|
||||
|
||||
find_library(COREML CoreML)
|
||||
find_library(FOUNDATION Foundation)
|
||||
|
|
Loading…
Reference in New Issue