<div dir="ltr">Hi,<br><br>I could find a way to retrieve the variables set by
UseJava.cmake. Also, it does not check if CMAKE_JAVA_CLASS_OUTPUT_PATH
is already defined, so I couldn't find a way to retrieve into which
directory the .class files will be stored.<br>
<br>My guess is that <span style="font-family:courier new,monospace"><br><br>set(CMAKE_JAVA_CLASS_OUTPUT_PATH "${CMAKE_JAVA_TARGET_OUTPUT_DIR}${CMAKE_FILES_DIRECTORY}/${_TARGET_NAME}.dir")</span><br><br>should be replaced by<br>
<span style="font-family:courier new,monospace"><br>if (NOT DEFINED CMAKE_JAVA_CLASS_OUTPUT_PATH <br> set(CMAKE_JAVA_CLASS_OUTPUT_PATH "${CMAKE_JAVA_TARGET_OUTPUT_DIR}${CMAKE_FILES_DIRECTORY}/${_TARGET_NAME}.dir")<br>
endif()</span><br><br>Also, how can CLASS_DIR be retrieved?<br><span style="font-family:courier new,monospace"><br>get_property(class_output_dir TARGET Foo PROPERTY CLASS_DIR</span><br><br>doesn't seem to work.<br><br>
Pol</div>