aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMAddAppIconTest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ECMAddAppIconTest')
-rw-r--r--tests/ECMAddAppIconTest/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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()