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

fix cmake error

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