Build: Minor fix on build log
Skip logging variable defined as an empty string
Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
Change-Id: Ifcd7825e9d3cbef51eb6d01730f3cf6be8da010f
diff --git a/cmake/utils.cmake b/cmake/utils.cmake
index 7b5f9b5..2717293 100644
--- a/cmake/utils.cmake
+++ b/cmake/utils.cmake
@@ -44,7 +44,7 @@
foreach (option ${options})
string(STRIP ${option} option)
# avoid errors on empty strings to tolerate ';' at the end of list
- if (option)
+ if((DEFINED ${option}) AND NOT ${option} STREQUAL "")
format_string(option_name ${option} 40 " ")
message(STATUS "${option_name} ${${option}}")
endif()