]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Small correction for OPENCV. V8_3_BR V8_3_0 V8_3_0rc1 V8_3_0rc2 V8_3_0rc3 V8_3_0rc4 V8_3_0rc5 V8_3_0rc6
authorrnv <rnv@opencascade.com>
Thu, 6 Apr 2017 11:53:42 +0000 (14:53 +0300)
committerrnv <rnv@opencascade.com>
Thu, 6 Apr 2017 11:53:42 +0000 (14:53 +0300)
cmake/FindOpenCV.cmake

index ac601b61c56c0839f03617c9f5152ba2e668b733..c8f38f83c01ed9704370a52690e71f83012e893f 100644 (file)
@@ -48,7 +48,10 @@ FOREACH(_compo ${OpenCV_LIB_COMPONENTS})
   ENDIF()
 ENDFOREACH()
 IF(OpenCV_LIBRARIES AND OpenCV_INCLUDE_DIRS)
-  SET(OpenCV_FOUND 1)
+  IF(NOT OpenCV_LIBS)
+    SET(OpenCV_LIBS ${OpenCV_LIBRARIES})
+  ENDIF()
+  SET(OpenCV_FOUND 1)  
 
   IF(NOT OpenCV_FIND_QUIETLY)
     MESSAGE("OpenCV found !")