diff options
author | Damjan Marion <damarion@cisco.com> | 2018-08-31 17:38:57 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2018-08-31 21:14:29 +0200 |
commit | c6c0246e2e9219baee3d67970775bed7560eac1e (patch) | |
tree | d8fb787aa3e95c30442e8fc997d05b6cdc4a008e /src/cmake/message.cmake | |
parent | 219cc90cb435cfcfb5154c6c0e49bd4d60aae769 (diff) |
cmake: detect vpp version, set soversion, pretty config print
Change-Id: I5d0777421debe6c3e4b93d62ad6790912063a9e6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake/message.cmake')
-rw-r--r-- | src/cmake/message.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cmake/message.cmake b/src/cmake/message.cmake index faee00091a2..fb740fdf7d9 100644 --- a/src/cmake/message.cmake +++ b/src/cmake/message.cmake @@ -34,3 +34,18 @@ function(message) endif() endfunction() +############################################################################## +# aligned config output +############################################################################## +function(pr desc val) + string(ASCII 27 esc) + set(reset "${esc}[m") + set(cyan "${esc}[36m") + + string(LENGTH ${desc} len) + while (len LESS 20) + set (desc "${desc} ") + string(LENGTH ${desc} len) + endwhile() + _message("${cyan}${desc}${reset}: ${val}") +endfunction() |