Re: [CMake] Latest UseJava.cmake
On 2014-02-21 13:48, Allen Byrne wrote: One is the issue with, http://public.kitware.com/Bug/view.php?id=14655, the CMAKE_JAVA_TARGET_OUTPUT_DIR doesn't override OUTPUT_DIR. Pedantic: if OUTPUT_DIR is given, it should override CMAKE_JAVA_TARGET_OUTPUT_DIR. I think maybe you didn't mean to suggest otherwise, but the above can be read that way. If OUTPUT_DIR is *not* given, CMAKE_JAVA_TARGET_OUTPUT_DIR should be used. IIUC this is what is not working for you? I wonder if this is an unexpected behavior in cmake_parse_arguments (setting it to empty if not specified rather than leaving it along)? I seem to recall there being a discussion about that semi-recently... I disagree with the issue being minor, because if you have a lot of JARs, it can be really annoying and error prone to set that everywhere. We just set the CMAKE_JAVA_TARGET_OUTPUT_DIR at the top of our root CMakeLists.cmake file. As a work-around, you could write a wrapper function, but your disagreement is reasonable. Patches welcomed. Could MANIFEST be added to the options in: cmake_parse_arguments(_add_jar "" "VERSION;OUTPUT_DIR;OUTPUT_NAME;ENTRY_POINT;MANIFEST" "SOURCES;INCLUDE_JARS" ${ARGN} ) Yes. (IIRC I only left it out because (a) it wasn't present previously, (b) I didn't need it myself and (c) I am lazy :-).) Again, patches welcomed. -- Matthew -- Powered by 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: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9
The order of arguments is wrong. Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. That fixed the issue. Shouldn't the WIKI be fixed so the example is correct? Sure it should -- can you edit the wiki page, and correct it? D -- Powered by 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: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Latest UseJava.cmake
Great work folks improving the Java support. I still have a couple of issues if anyone can help. One is the issue with, http://public.kitware.com/Bug/view.php?id=14655, the CMAKE_JAVA_TARGET_OUTPUT_DIR doesn't override OUTPUT_DIR. I disagree with the issue being minor, because if you have a lot of JARs, it can be really annoying and error prone to set that everywhere. We just set the CMAKE_JAVA_TARGET_OUTPUT_DIR at the top of our root CMakeLists.cmake file. Could MANIFEST be added to the options in: cmake_parse_arguments(_add_jar "" "VERSION;OUTPUT_DIR;OUTPUT_NAME;ENTRY_POINT;MANIFEST" "SOURCES;INCLUDE_JARS" ${ARGN} ) Of course the COMMAND; COMMAND ${Java_JAR_EXECUTABLE} -ufm ${_JAVA_JAR_OUTPUT_PATH} ${_add_jar_MANIFEST} for this would need to be added to the # create the jar file section properly. The only other issue is adding optional support for COMPONENT to the INSTALL functions. Otherwise, everything has been rock solid for us. Allen Byrne The HDF Group -- Powered by 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: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9
David, Indeed it should. Thanks for catching that! I've updated the wiki page with the correct order of arguments. - Chuck On Fri, Feb 21, 2014 at 11:25 AM, wrote: > > > The order of arguments is wrong. > > > > Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. > > > > That fixed the issue. Shouldn't the WIKI be fixed so the example is > correct? > > -- > > Powered by 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: > http://www.cmake.org/mailman/listinfo/cmake > -- Powered by 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: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9
> The order of arguments is wrong. > > Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. > That fixed the issue. Shouldn't the WIKI be fixed so the example is correct? -- Powered by 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: http://www.cmake.org/mailman/listinfo/cmake