提交 3412243c 编写于 作者: H HexToString

fix cmake error

上级 836b9859
...@@ -5,15 +5,17 @@ if(WITH_OPENCV) ...@@ -5,15 +5,17 @@ if(WITH_OPENCV)
LIST(APPEND op_srcs ${ppshitu_tools_srcs}) LIST(APPEND op_srcs ${ppshitu_tools_srcs})
LIST(APPEND op_srcs ${ocrtools_srcs}) LIST(APPEND op_srcs ${ocrtools_srcs})
else() else()
set (EXCLUDE_DIR "general_detection_op.cpp") LIST(APPEND EXCLUDE_LIST "general_detection_op.cpp")
set (EXCLUDE_DIR "general_picodet_op.cpp") LIST(APPEND EXCLUDE_LIST "general_picodet_op.cpp")
set (EXCLUDE_DIR "general_feature_extract_op.cpp") LIST(APPEND EXCLUDE_LIST "general_feature_extract_op.cpp")
foreach (TMP_PATH ${op_srcs}) foreach (TMP_PATH ${op_srcs})
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND) foreach (EXCLUDE_DIR ${EXCLUDE_LIST})
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1) string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
list (REMOVE_ITEM op_srcs ${TMP_PATH}) if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
break() list (REMOVE_ITEM op_srcs ${TMP_PATH})
endif () break()
endif ()
endforeach(EXCLUDE_DIR)
endforeach(TMP_PATH) endforeach(TMP_PATH)
endif() endif()
LIST(APPEND serving_srcs ${op_srcs}) LIST(APPEND serving_srcs ${op_srcs})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册