From 5fa41ecd623da7f69061bc5091bd4a3006c9895b Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 4 Jun 2017 19:05:41 +0200 Subject: tests: improve error reporting for ECMAddAppIconTest when checking whether there were new sources added (on Windows and Mac), check whether the variable is empty as list, instead of failing because of a cmake syntax error --- tests/ECMAddAppIconTest/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ECMAddAppIconTest/CMakeLists.txt b/tests/ECMAddAppIconTest/CMakeLists.txt index 91da97ac..dc556c1d 100644 --- a/tests/ECMAddAppIconTest/CMakeLists.txt +++ b/tests/ECMAddAppIconTest/CMakeLists.txt @@ -13,7 +13,8 @@ set(ICONS 16-category-name.png 128-category-name.png) ecm_add_app_icon(OUT ICONS ${ICONS}) if(WIN32 OR APPLE) - if(${OUT} STREQUAL "") + list(LENGTH OUT out_count) + if(out_count EQUAL 0) message(FATAL_ERROR "ecm_add_app_icon() haven't produced anything") endif() endif() -- cgit v1.2.1