From 2d1e3c215f8c125be20ce28a6def7a1b017df86b Mon Sep 17 00:00:00 2001
From: patrick96
Date: Thu, 13 Jul 2017 00:32:47 +0200
Subject: [PATCH] Add textual indicator for module support
If color output was surpressed, there was no way to tell in the cmake
summary, if a module is actually enabled or not.
Now each module is prefixed with either a "[X]" to indicate it's enabled
or a "[ ]" to indicate it's not
---
cmake/common/utils.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmake/common/utils.cmake b/cmake/common/utils.cmake
index d544e9b4..a2cb3d92 100644
--- a/cmake/common/utils.cmake
+++ b/cmake/common/utils.cmake
@@ -14,9 +14,9 @@ endfunction()
function(colored_option text flag)
if(${flag})
- message_colored(STATUS "${text}" "32;1")
+ message_colored(STATUS "[X]${text}" "32;1")
else()
- message_colored(STATUS "${text}" "37;2")
+ message_colored(STATUS "[ ]${text}" "37;2")
endif()
endfunction()