From 5593d5718ec90f6a2e37ca4e2fdf3fc4537380ff Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Fri, 8 Jun 2012 17:22:43 +0200 Subject: UseJava: fix find_jar() called with multiple files (#13281) --- Modules/UseJava.cmake | 4 ++-- 1 file 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}) -- cgit v0.12