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:
parent
d35abc7620
commit
2d1e3c215f
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user