diff --git a/plugins/channeltx/modatv/CMakeLists.txt b/plugins/channeltx/modatv/CMakeLists.txt index 9634eca10..832871c57 100644 --- a/plugins/channeltx/modatv/CMakeLists.txt +++ b/plugins/channeltx/modatv/CMakeLists.txt @@ -61,7 +61,7 @@ target_link_libraries(${TARGET_NAME} "${OpenCV_LIBS}" ) -if(OpenCV_EXTERNAL) +if(DEFINED OpenCV_DEPENDS) add_dependencies(${TARGET_NAME} opencv) endif()