Skip to content
Snippets Groups Projects
Commit 651ccd64 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

REFAC: remove the OTB_OPENCV_3 cmake variable

parent 7bff53a1
Branches
Tags
No related merge requests found
...@@ -26,13 +26,6 @@ if("${OpenCV_VERSION}" VERSION_LESS "2.4.0") ...@@ -26,13 +26,6 @@ if("${OpenCV_VERSION}" VERSION_LESS "2.4.0")
"it may not be fully compatible with OTB") "it may not be fully compatible with OTB")
endif() endif()
# OTB_OPENCV_3 is true for OpenCV 3 and 4
if(OpenCV_VERSION_MAJOR GREATER_EQUAL 3)
set(OTB_OPENCV_3 1)
else()
set(OTB_OPENCV_3 0)
endif()
if(OpenCV_VERSION_MAJOR EQUAL 4) if(OpenCV_VERSION_MAJOR EQUAL 4)
set(OTB_OPENCV_4 1) set(OTB_OPENCV_4 1)
else() else()
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef otb_opencv_api_h #ifndef otb_opencv_api_h
#define otb_opencv_api_h #define otb_opencv_api_h
#cmakedefine OTB_OPENCV_3
#cmakedefine OTB_OPENCV_4 #cmakedefine OTB_OPENCV_4
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment