From 5e0126ec22f7c254ae10e8ef097e11dd8f7ab0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=80=B8=E8=B1=AA?= Date: Mon, 6 Mar 2023 09:51:44 +0000 Subject: [PATCH] demos/TTSArmLinux: Remove unnecessary opencv dependencies Demo does not use OpenCV functions. Even if the Paddle-Lite library enables OpenCV, it does not need to be installed when building the demo. --- demos/TTSArmLinux/src/CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/demos/TTSArmLinux/src/CMakeLists.txt b/demos/TTSArmLinux/src/CMakeLists.txt index b15d89934..0fa27444f 100644 --- a/demos/TTSArmLinux/src/CMakeLists.txt +++ b/demos/TTSArmLinux/src/CMakeLists.txt @@ -42,17 +42,6 @@ else() message(FATAL_ERROR "Could not found OpenMP!") return() endif() -find_package(OpenCV REQUIRED) -if(OpenCV_FOUND OR OpenCV_CXX_FOUND) - include_directories(${OpenCV_INCLUDE_DIRS}) - message(STATUS "OpenCV library status:") - message(STATUS " version: ${OpenCV_VERSION}") - message(STATUS " libraries: ${OpenCV_LIBS}") - message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}") -else() - message(FATAL_ERROR "Could not found OpenCV!") - return() -endif() add_executable(paddlespeech_tts_demo main.cc) target_link_libraries(paddlespeech_tts_demo paddle_light_api_shared)