On 2013-12-18 15:13, Mantis Bug Tracker wrote:
Setting CMAKE_JAVA_TARGET_OUTPUT_DIR to the desired output path seems to have no affect when using NMake as the generator.Steps to Reproduce: include(UseJava) set(CMAKE_JAVA_TARGET_OUTPUT_DIR <insert your preferred dir here>) add_jar(<add your sources>) The jar will continue to be placed into the current binary directory. According to documentation: "The default OUTPUT_DIR can also be changed by setting the variable CMAKE_JAVA_TARGET_OUTPUT_DIR." Additional Information: This appears to be happening because of the use of cmake_parse_arguments in UseJava.cmake. _add_jar_OUTPUT_DIR is setup correctly with CMAKE_JAVA_TARGET_OUTPUT_DIR until that is called. As there is a work around for this (using OUTPUT_DIR in the add_jar command), I logged it as minor.
Does cmake_parse_arguments explicitly clear all variables it is told about? -- Matthew -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
