https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086

Adriaan de Groot <adr...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adr...@freebsd.org

--- Comment #13 from Adriaan de Groot <adr...@freebsd.org> ---
After `find_package(Java)` you should be using `${Java_JAVA_EXECUTABLE}` or
`${Java_JAVAC_EXECUTABLE}`, which will be the full path of the relevant
executable: do not assume that they are in bin/ under the JAVA_HOME. Well, you
can, and it'd be right most of the time, but there is a specific, explicit,
variable for you to use.

The CMake code suggests that it does obey the CMake variable JAVA_HOME (if set)
and also the environment variable, so there's some experimentation to be done
between running-cmake-from-command-line and running-cmake-in-ports.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to