[cmake-developers] Improve JNI detection and fix Java testcase

Brad King brad.king at kitware.com
Tue Mar 26 10:17:52 EDT 2013


On 03/26/2013 09:40 AM, Andreas Schneider wrote:
> I think FindJava.cmake and FindJNI.cmake need to be carefully rewritten 
> looking for java binaries and FindJNI.cmake should use FindJava.cmake.

Yes, but that won't happen without a contributor stepping up.  It also
won't happen before 2.8.11.

> So this patch just fixes the default case for openSUSE and Fedora (with 
> OpenJDK).

We can't introduce JAVA_EXE to FindJNI.  It will be confused with
Java_JAVA_EXECUTABLE from FindJava.  I'd rather just add the paths
for OpenJDK on those platforms for until the above is done.

-Brad



More information about the cmake-developers mailing list