[CMake] Find_Java fails to prioritize JAVA_HOME
Pol
lluna.nova+tools at gmail.com
Wed Mar 20 10:20:55 EDT 2013
Hi,
I have several versions of java jdk on my system. I usually tell which one
to use with the Java_Home environment variable. FindJava.cmake fails to
give priority to that.
I've changed FindJava.cmake
from
set(_JAVA_HINTS
"[HKEY...]/bin"
[...]
$ENV{JAVA_HOME}/bin
)
to
set(_JAVA_HINTS
$ENV{JAVA_HOME}/bin
"[HKEY...]/bin"
[...]
)
and now it works.
Is that a bug?
Pol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130320/1efbeb9d/attachment.htm>
More information about the CMake
mailing list