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
This commit is contained in:
patrick96 2017-07-13 00:32:47 +02:00 committed by Michael Carlberg
parent d35abc7620
commit 2d1e3c215f

View File

@ -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()