refactor(cmake): Make documentation optional

This commit is contained in:
patrick96 2018-12-14 10:12:42 +01:00 committed by Patrick Ziegler
parent 3596001de1
commit 754673bff8
3 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ option(CXXLIB_GCC "Link against stdlibc++" OFF)
option(BUILD_IPC_MSG "Build ipc messager" ON)
option(BUILD_TESTS "Build testsuite" OFF)
option(BUILD_TESTS "Build documentation" ON)
option(ENABLE_ALSA "Enable alsa support" ON)
option(ENABLE_CURL "Enable curl support" ON)

View File

@ -12,6 +12,7 @@ message_colored(STATUS " LD: ${CMAKE_LINKER} ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE
message(STATUS " Targets:")
colored_option(" polybar-msg" BUILD_IPC_MSG)
colored_option(" testsuite" BUILD_TESTS)
colored_option(" documentation" BUILD_DOC)
message(STATUS " Module support:")
colored_option(" alsa" ENABLE_ALSA)

View File

@ -1,3 +1,7 @@
if(NOT BUILD_DOC)
return()
endif()
#
# Generate configuration file
#