Fix C/C++ Flags appending
diff --git a/build_tools/cmake/iree_macros.cmake b/build_tools/cmake/iree_macros.cmake
index b1e70d4..04466b5 100644
--- a/build_tools/cmake/iree_macros.cmake
+++ b/build_tools/cmake/iree_macros.cmake
@@ -42,6 +42,17 @@
   endif()
 endfunction()
 
+# iree_append_list_to_string
+#
+# Joins ${ARGN} together as a string separated by " " and appends it to
+# ${VARIABLE}.
+function(iree_append_list_to_string VARIABLE)
+  if(NOT "${ARGN}" STREQUAL "")
+    string(JOIN " " _ARGN_STR ${ARGN})
+    set(${VARIABLE} "${${VARIABLE}} ${_ARGN_STR}" PARENT_SCOPE)
+  endif()
+endfunction()
+
 
 #-------------------------------------------------------------------------------
 # Packages and Paths