refactor(cmake): Make documentation optional
This commit is contained in:
parent
3596001de1
commit
754673bff8
@ -30,6 +30,7 @@ option(CXXLIB_GCC "Link against stdlibc++" OFF)
|
|||||||
|
|
||||||
option(BUILD_IPC_MSG "Build ipc messager" ON)
|
option(BUILD_IPC_MSG "Build ipc messager" ON)
|
||||||
option(BUILD_TESTS "Build testsuite" OFF)
|
option(BUILD_TESTS "Build testsuite" OFF)
|
||||||
|
option(BUILD_TESTS "Build documentation" ON)
|
||||||
|
|
||||||
option(ENABLE_ALSA "Enable alsa support" ON)
|
option(ENABLE_ALSA "Enable alsa support" ON)
|
||||||
option(ENABLE_CURL "Enable curl support" ON)
|
option(ENABLE_CURL "Enable curl support" ON)
|
||||||
|
@ -12,6 +12,7 @@ message_colored(STATUS " LD: ${CMAKE_LINKER} ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE
|
|||||||
message(STATUS " Targets:")
|
message(STATUS " Targets:")
|
||||||
colored_option(" polybar-msg" BUILD_IPC_MSG)
|
colored_option(" polybar-msg" BUILD_IPC_MSG)
|
||||||
colored_option(" testsuite" BUILD_TESTS)
|
colored_option(" testsuite" BUILD_TESTS)
|
||||||
|
colored_option(" documentation" BUILD_DOC)
|
||||||
|
|
||||||
message(STATUS " Module support:")
|
message(STATUS " Module support:")
|
||||||
colored_option(" alsa" ENABLE_ALSA)
|
colored_option(" alsa" ENABLE_ALSA)
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if(NOT BUILD_DOC)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate configuration file
|
# Generate configuration file
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user