diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-17 07:14:17 (GMT) |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-29 06:51:45 (GMT) |
commit | e01b98ee4d755acc458d69296cedfdf068d074b7 (patch) | |
tree | dd3fbce15069a8850fef70b28841d5d977692cf8 /Modules/UseJava.cmake | |
parent | b17a6dd55b94179fb87f27255f918a7d82ea57e5 (diff) | |
download | CMake-e01b98ee4d755acc458d69296cedfdf068d074b7.zip CMake-e01b98ee4d755acc458d69296cedfdf068d074b7.tar.gz CMake-e01b98ee4d755acc458d69296cedfdf068d074b7.tar.bz2 |
Modules: Add support for more java archives in add_jar().
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r-- | Modules/UseJava.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake index 869394d..b78278c 100644 --- a/Modules/UseJava.cmake +++ b/Modules/UseJava.cmake @@ -262,7 +262,10 @@ function(add_jar _TARGET_NAME) set(_JAVA_CLASS_FILE "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/${_JAVA_REL_PATH}/${_JAVA_FILE}.class") set(_JAVA_CLASS_FILES ${_JAVA_CLASS_FILES} ${_JAVA_CLASS_FILE}) - elseif (_JAVA_EXT MATCHES ".jar") + 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}) elseif (_JAVA_EXT STREQUAL "") |