diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 2e80cf06..56312ae3 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -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" ${_EXPAT_BUILD_DOCS_DEFAULT}) +option(EXPAT_BUILD_DOCS "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) @@ -290,7 +290,7 @@ if(EXPAT_BUILD_TOOLS) set_property(TARGET xmlwf PROPERTY RUNTIME_OUTPUT_DIRECTORY xmlwf) target_link_libraries(xmlwf expat) expat_install(TARGETS xmlwf DESTINATION ${CMAKE_INSTALL_BINDIR}) - if(BUILD_doc) + if(EXPAT_BUILD_DOCS) file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/doc) add_custom_command(TARGET expat PRE_BUILD COMMAND "${DOCBOOK_TO_MAN}" "${PROJECT_SOURCE_DIR}/doc/xmlwf.xml" && mv "XMLWF.1" "${PROJECT_BINARY_DIR}/doc/xmlwf.1") expat_install(FILES "${PROJECT_BINARY_DIR}/doc/xmlwf.1" DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) @@ -447,7 +447,7 @@ if(WIN32) message(STATUS " Binary postfix ............. ${CMAKE_${_EXPAT_BUILD_TYPE_UPPER}_POSTFIX}") endif() message(STATUS "") -message(STATUS " Build documentation ........ ${BUILD_doc}") +message(STATUS " Build documentation ........ ${EXPAT_BUILD_DOCS}") message(STATUS " Build examples ............. ${EXPAT_BUILD_EXAMPLES}") message(STATUS " Build fuzzers .............. ${BUILD_fuzzers}") message(STATUS " Build tests ................ ${EXPAT_BUILD_TESTS}")