diff --git a/DeepLearningSuite/CMakeLists.txt b/DeepLearningSuite/CMakeLists.txt index 96723540..7525de2d 100644 --- a/DeepLearningSuite/CMakeLists.txt +++ b/DeepLearningSuite/CMakeLists.txt @@ -92,10 +92,10 @@ endif() if(roscpp_FOUND) add_definitions(-DJDERROS) endif() -if(HAS_OPENCV_DNN) +if(OpenCV_FOUND) SET(ENABLE_DNN_CAFFE ON) add_definitions(-DENABLE_DNN_CAFFE) -endif(HAS_OPENCV_DNN) +endif(OpenCV_FOUND) add_subdirectory(libs) add_subdirectory(DeepLearningSuiteLib)