CMake: Rename BUILD_doc_default to _EXPAT_BUILD_DOCS_DEFAULT

This commit is contained in:
Sebastian Pipping 2019-08-30 21:10:18 +02:00
parent 9595968a3e
commit 3eb4909120

View File

@ -28,13 +28,13 @@ else()
set(_EXPAT_BUILD_TOOLS_DEFAULT ON)
endif()
if(MSVC OR NOT _EXPAT_BUILD_TOOLS_DEFAULT)
set(BUILD_doc_default OFF)
set(_EXPAT_BUILD_DOCS_DEFAULT OFF)
else()
find_program(DOCBOOK_TO_MAN NAMES docbook2x-man db2x_docbook2man docbook2man docbook-to-man)
if(DOCBOOK_TO_MAN)
set(BUILD_doc_default ON)
set(_EXPAT_BUILD_DOCS_DEFAULT ON)
else()
set(BUILD_doc_default OFF)
set(_EXPAT_BUILD_DOCS_DEFAULT OFF)
endif()
endif()
@ -45,7 +45,7 @@ option(EXPAT_BUILD_TOOLS "build the xmlwf tool for expat library" ${_EXPAT_BUILD
option(EXPAT_BUILD_EXAMPLES "build the examples for expat library" ON)
option(EXPAT_BUILD_TESTS "build the tests for expat library" ON)
option(BUILD_shared "build a shared expat library" ON)
option(BUILD_doc "build man page for xmlwf" ${BUILD_doc_default})
option(BUILD_doc "build man page for xmlwf" ${_EXPAT_BUILD_DOCS_DEFAULT})
option(BUILD_fuzzers "build fuzzers for the expat library" OFF)
option(USE_libbsd "utilize libbsd (for arc4random_buf)" OFF)
option(INSTALL "install expat files in cmake install target" ON)