aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/misc.cmake (renamed from src/cmake/message.cmake)13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmake/message.cmake b/src/cmake/misc.cmake
index c1e16bf89a9..9542557ce9d 100644
--- a/src/cmake/message.cmake
+++ b/src/cmake/misc.cmake
@@ -52,3 +52,16 @@ function(pr desc val)
endwhile()
_message("${cyan}${desc}${reset}: ${val}")
endfunction()
+
+##############################################################################
+# string append
+##############################################################################
+
+macro(string_append var str)
+ if (NOT ${var})
+ set(${var} "${str}")
+ else()
+ set(${var} "${${var}} ${str}")
+ endif()
+endmacro()
+