• Misty De Meo's avatar
    Fix ant/Java detection in cmake scripts · e143706e
    Misty De Meo authored
    Mac OS X 10.7 and newer don't come with Java installed. They do
    include some stub binaries, which ask the user if they want to
    install Java when run.
    
    OpenCV's cmake script just checks for the existence of an ant
    binary and assumes that Java's available if ant is. As a result,
    cmake will configure the build to use Java and it will fail once
    it tries to compile the Java bindings.
    
    This fixes the issue by checking for the exit status of
    `ant -version` - it exits 0 if Java is installed, or 1
    otherwise.(cherry picked from commit a423afdd)
    e143706e
Name
Last commit
Last update
3rdparty Loading commit data...
android Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
ios Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
README Loading commit data...
index.rst Loading commit data...