Rm zlib when linking ocos_operators (#807)
This commit is contained in:
Родитель
8bc8e43da1
Коммит
8d842d85e3
|
@ -596,7 +596,7 @@ target_include_directories(ocos_operators PUBLIC
|
|||
${PROJECT_SOURCE_DIR}/base
|
||||
${PROJECT_SOURCE_DIR}/operators)
|
||||
|
||||
if (OCOS_USE_CUDA)
|
||||
if (OCOS_USE_CUDA)
|
||||
target_include_directories(ocos_operators PUBLIC ${cutlass_SOURCE_DIR}/include ${cutlass_SOURCE_DIR}/examples)
|
||||
endif()
|
||||
|
||||
|
@ -741,7 +741,7 @@ if(OCOS_ENABLE_C_API)
|
|||
file(GLOB cv2_TARGET_SRC "shared/api/c_api_processor.*" "shared/api/image_*.*")
|
||||
list(APPEND _TARGET_LIB_SRC ${cv2_TARGET_SRC})
|
||||
target_include_directories(ocos_operators PUBLIC ${libPNG_SOURCE_DIR} ${libJPEG_SOURCE_DIR})
|
||||
target_link_libraries(ocos_operators PUBLIC ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
|
||||
target_link_libraries(ocos_operators PUBLIC ${PNG_LIBRARY} ${JPEG_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче