No Color Cmake Build Option #114

This commit is contained in:
lwvmobile
2023-04-13 10:59:40 -04:00
parent f3d94ddc2a
commit f967b80217
3 changed files with 30 additions and 1 deletions

View File

@@ -12,6 +12,13 @@ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE)
#use cmake option -DCOLORS=OFF to disable color output
option(COLORS
"Build with Colors Enabled" ON)
if (COLORS)
add_definitions(-DPRETTY_COLORS)
endif ()
include(git_revision)
git_describe(GIT_TAG)