Hi,
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.
My guess is that
set(CMAKE_JAVA_CLASS_OUTPUT_PATH
"${CMAKE_JAVA_TARGET_OUTPUT_DIR}${CMAKE_FILES_DIRECTORY}/${_TARGET_NAME}.dir")
should be replaced by
if (NOT DEFINED CMAKE_JAVA_CLASS_OUTPUT_PATH
set(CMAKE_JAVA_CLASS_OUTPUT_PATH
"${CMAKE_JAVA_TARGET_OUTPUT_DIR}${CMAKE_FILES_DIRECTORY}/${_TARGET_NAME}.dir")
endif()
Also, how can CLASS_DIR be retrieved?
get_property(class_output_dir TARGET Foo PROPERTY CLASS_DIR
doesn't seem to work.
Pol
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake