diff options
author | David Cole <david.cole@kitware.com> | 2012-06-12 20:00:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-06-12 20:00:49 (GMT) |
commit | c6f6929e31a3e8067633aa57cf0775bced9d8443 (patch) | |
tree | 9a49bb1ef4c92fe040d641bef47e927d279a960e | |
parent | 6a52f3cb36ed1c1ff1a8ec26a19fb36665f8baa8 (diff) | |
parent | 5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff (diff) | |
download | CMake-c6f6929e31a3e8067633aa57cf0775bced9d8443.zip CMake-c6f6929e31a3e8067633aa57cf0775bced9d8443.tar.gz CMake-c6f6929e31a3e8067633aa57cf0775bced9d8443.tar.bz2 |
Merge topic 'UseJava-13281'
5593d57 UseJava: fix find_jar() called with multiple files (#13281)
-rw-r--r-- | Modules/UseJava.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake index 30cc920..0b2d1b8 100644 --- a/Modules/UseJava.cmake +++ b/Modules/UseJava.cmake @@ -533,9 +533,9 @@ function (find_jar VARIABLE) endif (${_state} STREQUAL "name") endforeach (arg ${ARGN}) - if (${_jar_names} STREQUAL "") + if (NOT _jar_names) message(FATAL_ERROR "find_jar: No name to search for given") - endif (${_jar_names} STREQUAL "") + endif (NOT _jar_names) foreach (jar_name ${_jar_names}) foreach (version ${_jar_versions}) |