CMake procedure: Detecting OpenCV third-party product on Windows

This commit is contained in:
ana 2015-05-15 12:00:16 +03:00
parent 544fdbbac5
commit 10ae356a87

View File

@ -23,7 +23,14 @@
#
# !! Please read the generic detection procedure in SalomeMacros.cmake !!
#
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR 2)
SET(UpCount 2)
IF (WIN32)
SET(UpCount 0)
ENDIF (WIN32)
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR ${UpCount})
#MARK_AS_ADVANCED()
IF(OpenCV_FOUND)