This PR removes CXX as a required language and makes it conditional on the availability of OpenCV. If examples are not requested (BUILD_EXAMPLES=OFF) or if OpenCV is not available (OpenCV_FOUND is false), the CXX language features will not be enabled and only the C language features will be required. This allows us to build the library and the basic example without a C++ compiler present.
This PR removes
CXX
as a required language and makes it conditional on the availability of OpenCV. If examples are not requested (BUILD_EXAMPLES=OFF
) or if OpenCV is not available (OpenCV_FOUND
is false), theCXX
language features will not be enabled and only the C language features will be required. This allows us to build the library and the basic example without a C++ compiler present.