UseJava: fix find_jar() called with multiple files (#13281)

This commit is contained in:
Rolf Eike Beer 2012-06-08 17:22:43 +02:00
parent 03deea00bc
commit 5593d5718e
1 changed files with 2 additions and 2 deletions

View File

@ -533,9 +533,9 @@ function (find_jar VARIABLE)
endif (${_state} STREQUAL "name") endif (${_state} STREQUAL "name")
endforeach (arg ${ARGN}) endforeach (arg ${ARGN})
if (${_jar_names} STREQUAL "") if (NOT _jar_names)
message(FATAL_ERROR "find_jar: No name to search for given") 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 (jar_name ${_jar_names})
foreach (version ${_jar_versions}) foreach (version ${_jar_versions})