Skip to content

Commit 864d013

Browse files
committed
update comments
1 parent 2fd1ef7 commit 864d013

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/mtmd/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_library(mtmd
1515
mtmd-ios.h
1616
)
1717

18-
# 在Apple平台上添加ANE相关文件
18+
# Add ANE related files on Apple platforms
1919
if(APPLE)
2020
target_sources(mtmd PRIVATE
2121
ane/ane.h
@@ -24,7 +24,7 @@ if(APPLE)
2424
ane/ane_minicpmv4_vit_f16.m
2525
)
2626

27-
# 为Objective-C文件启用ARC
27+
# Enable ARC for Objective-C files
2828
set_source_files_properties(ane/ane.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc")
2929
set_source_files_properties(ane/ane_minicpmv4_vit_f16.m PROPERTIES COMPILE_FLAGS "-fobjc-arc")
3030
endif()
@@ -40,7 +40,7 @@ target_include_directories(mtmd PRIVATE ../../src)
4040
target_include_directories(mtmd PRIVATE ../../vendor)
4141
target_compile_features (mtmd PRIVATE cxx_std_17)
4242

43-
# 在Apple平台上链接CoreML和Accelerate框架
43+
# Link CoreML and Accelerate frameworks on Apple platforms
4444
if(APPLE)
4545
target_link_libraries(mtmd PRIVATE
4646
"-framework Foundation"
@@ -62,7 +62,7 @@ set(MTMD_PUBLIC_HEADERS
6262
${CMAKE_CURRENT_SOURCE_DIR}/mtmd-ios.h
6363
)
6464

65-
# 在Apple平台上添加ANE公共头文件
65+
# Add ANE public headers on Apple platforms
6666
if(APPLE)
6767
list(APPEND MTMD_PUBLIC_HEADERS
6868
${CMAKE_CURRENT_SOURCE_DIR}/ane/ane.h
@@ -97,7 +97,7 @@ install (TARGETS ${TARGET} RUNTIME BUNDLE DESTINATION .)
9797
target_link_libraries (${TARGET} PRIVATE common mtmd Threads::Threads)
9898
target_compile_features(${TARGET} PRIVATE cxx_std_17)
9999

100-
# iOS接口测试
100+
# iOS interface testing
101101
set(TARGET_IOS llama-mtmd-ios-test)
102102
add_executable (${TARGET_IOS} mtmd-ios-example.cpp)
103103
set_target_properties (${TARGET_IOS} PROPERTIES OUTPUT_NAME llama-mtmd-ios-test)
@@ -111,13 +111,13 @@ target_include_directories(${TARGET_IOS} PRIVATE ../../vendor)
111111
target_link_libraries (${TARGET_IOS} PRIVATE mtmd common llama ggml Threads::Threads)
112112
target_compile_features(${TARGET_IOS} PRIVATE cxx_std_17)
113113

114-
# 确保依赖库先构建
114+
# Ensure dependent libraries are built first
115115
add_dependencies(${TARGET_IOS} mtmd)
116116
if (TARGET common)
117117
add_dependencies(${TARGET_IOS} common)
118118
endif()
119119

120-
# 在Apple平台上为iOS测试添加额外的链接设置
120+
# Add additional linking settings for iOS testing on Apple platforms
121121
if(APPLE)
122122
target_link_libraries(${TARGET_IOS} PRIVATE
123123
"-framework Foundation"

0 commit comments

Comments
 (0)