[CMake] Overriding Win-Registry search in UseJNI.cmake

Oliver Buchtala oliver.buchtala at jku.at
Tue Apr 5 07:12:36 EDT 2011


Hello,

I am working with CMake 2.8 and using UseJNI.cmake
I have a JDK installed locally (registered in Win-Registry) but want to 
configure a project to use a different JDK lying on my disk.

Looking at UseJNI.cmake I find that the environment variable JAVA_HOME 
could be handy,
but unfortunately UseJNI prefers the Windows-Registry entries above all 
other search paths.

Did I miss something?
Shall I file an issue?

Oliver



More information about the CMake mailing list