summaryrefslogtreecommitdiffstats
path: root/Modules/UseJava.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-06-08 15:22:43 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-06-08 15:35:32 (GMT)
commit5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff (patch)
tree57048c7564cb5a20a1a0b1c1934f0b80878cd233 /Modules/UseJava.cmake
parent03deea00bc55210f2de47805d2abbe7110efac38 (diff)
downloadCMake-5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff.zip
CMake-5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff.tar.gz
CMake-5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff.tar.bz2
UseJava: fix find_jar() called with multiple files (#13281)
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r--Modules/UseJava.cmake4
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})