Merge topic 'UseJava-13281'

5593d57 UseJava: fix find_jar() called with multiple files (#13281)
This commit is contained in:
David Cole 2012-06-12 16:00:49 -04:00 committed by CMake Topic Stage
commit c6f6929e31
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})