<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-07-22 0:23 GMT+02:00 Alan W. Irwin <span dir="ltr"><<a href="mailto:irwin@beluga.phys.uvic.ca" target="_blank">irwin@beluga.phys.uvic.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have built CMake-3.9.0 on my Linux (Debian Jessie) platform using<br>
the bootstrap method I have always successfully used for other CMake<br>
versions (including 3.7.2).<br>
<br>
For a complex project (PLplot) which uses swig_add_module and<br>
swig_link_libraries to implement our Java binding, I get the following<br>
error message at the end of that CMake-3.9.0 output.<br>
<br>
-- Configuring done<br>
CMake Error: Error required internal CMake variable not set, cmake may<br>
not be built correctly.<br>
Missing variable is:<br>
CMAKE_Java_CREATE_SHARED_MODUL<wbr>E<br>
-- Generating done<br>
-- Build files have been written to:<br>
/home/software/plplot/HEAD/bui<wbr>ld_dir<br>
<br>
I don't get this error message for CMake-3.7.2.<br>
<br>
Using find and xargs -0 grep I have looked in both 3.7.2 and 3.9.0<br>
source code for any mention of CMAKE_Java_CREATE_SHARED_MODUL<wbr>E, and it<br>
just does not exist.<br>
<br>
By the way, I have tried the following simple project.<br>
<br>
cmake_minimum_required(VERSION 3.6.2 FATAL_ERROR)<br>
project(test_java NONE)<br>
enable_language(Java)<br>
message(STATUS "CMAKE_Java_CREATE_SHARED_MODU<wbr>LE = ${CMAKE_Java_CREATE_SHARED_MOD<wbr>ULE}")<br></blockquote><div><br></div><div>I'm curious with that.</div><div>I do currently use UseJava.cmake module</div><div><a href="https://cmake.org/cmake/help/v3.7/module/UseJava.html">https://cmake.org/cmake/help/v3.7/module/UseJava.html</a></div><div>for building some java bits in a globally C++ project.</div><div><br></div><div>I never tried  enable_language(Java)</div></div><div class="gmail_quote">what is the status of Java support as a primary language?</div><div class="gmail_quote"><br></div><div class="gmail_quote">I tried to find informations about that in the doc and mailing list but didn't find much.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Could someone please point me to the appropriate place concerning this?</div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div></div>