aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-26 14:12:25 +0100
committerDamjan Marion <damarion@cisco.com>2019-01-26 14:12:25 +0100
commitff426930051664aee1638ccff23c3345b4c129e7 (patch)
tree5c18055691881d192c27ef721eca56589b7a1e56 /src/cmake
parent1aaf0e343b25cc72fea4e1f1a23f83e82b6457cb (diff)
cmake: add support for linking with DPDK shared libs
Change-Id: I3423191c53ab6100ee9ecc4e24b06506ff1b25c8 Signed-off-by: Damjan Marion <damarion@cisco.com>
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()
+