[Bug 266086] devel/cmake: cmake fails to find specific Java version when several Java versions are installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 29 10:01:08 BST 2022
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086
--- Comment #9 from Tobias C. Berner <tcberner at freebsd.org> ---
>From FindJava.cmake:
10 This module finds if Java is installed and determines where the
11 include files and libraries are. The caller may set variable ``JAVA_HOME``
12 to specify a Java installation prefix explicitly.
Apparently, setting the CMAKE_ARGS+=-DJAVA_HOME=${JAVA_HOME} does not work.
But if you check /usr/local/share/cmake/Modules/CMakeFindJavaCommon.cmake you
also see that it can source it from the environment variable JAVA_HOME.
If you set
CONFIGURE_ENV+= JAVA_HOME=${JAVA_HOME}
then at least the configure stage passes without any issues.
Note: the CMakeLists contains some direct 'java' calls in custom_commands, so
there are likely other issues :)
mfg Tobias
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list