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

Oliver Buchtala oliver.buchtala at jku.at
Tue Apr 5 07:16:25 EDT 2011


Am 05.04.2011 13:12, schrieb Oliver Buchtala:
> 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
>
Sorry, the macro file is called FindJNI.cmake.



More information about the CMake mailing list