The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=13568 ====================================================================== Reported By: mefoster Assigned To: ====================================================================== Project: CMake Issue ID: 13568 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-10-02 10:41 EDT Last Modified: 2012-10-02 10:41 EDT ====================================================================== Summary: Source-file extension magic in UseJava.cmake doesn't work as intended Description: In UseJava.cmake, it appears that the intention is that if a jar/war/ear/sar file is included in the argument to ADD_JAR, it should be appended to the CLASSPATH:
elseif (_JAVA_EXT MATCHES ".jar" OR _JAVA_EXT MATCHES ".war" OR _JAVA_EXT MATCHES ".ear" OR _JAVA_EXT MATCHES ".sar") list(APPEND CMAKE_JAVA_INCLUDE_PATH ${_JAVA_SOURCE_FILE}) However, this doesn't seem to be happening; the only way I can get jar files into the CLASSPATH is by explicitly setting CMAKE_JAVA_INCLUDE_PATH myself before the ADD_JAR command. Additional Information: This is with cmake-2.8.9-1.fc18.x86_64 on Fedora 17 (I installed the F18 development version of cmake to get the latest Java macros). ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-10-02 10:41 mefoster New Issue ====================================================================== -- 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