[CMake] java_home usage

Stéphane Ancelot sancelot at numalliance.com
Mon Oct 22 05:30:52 EDT 2018



Le 22/10/2018 à 11:19, Marc CHEVRIER a écrit :
> Variable must be specified using upper case. So 'set (JAVA_HOME ...)' 
> should be OK (or environment variable JAVA_HOME is OK as well). javac 
> is expected to be in $JAVA_HOME/bin.
>
Yes, It is :
set(JAVA_HOME /usr/lib/jvm/jdk1.6.0_45)

>
> Le lun. 22 oct. 2018 à 10:16, Stéphane Ancelot 
> <sancelot at numalliance.com <mailto:sancelot at numalliance.com>> a écrit :
>
>     Hi,
>
>     If I set java_home in cmake 3.12 , Java_JAVAC_EXECUTABLE is not
>     using my
>     java_home env but /usr/bin/javac
>
>
>     what is wrong ?
>
>     Regards,
>
>     S.Ancelot
>
>     -- 
>
>     Powered by www.kitware.com <http://www.kitware.com>
>
>     Please keep messages on-topic and check the CMake FAQ at:
>     http://www.cmake.org/Wiki/CMake_FAQ
>
>     Kitware offers various services to support the CMake community.
>     For more information on each offering, please visit:
>
>     CMake Support: http://cmake.org/cmake/help/support.html
>     CMake Consulting: http://cmake.org/cmake/help/consulting.html
>     CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>
>     Follow this link to subscribe/unsubscribe:
>     https://cmake.org/mailman/listinfo/cmake
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181022/5684b9cd/attachment-0001.html>


More information about the CMake mailing list