CMake: Rename BUILD_doc to EXPAT_BUILD_DOCS
This commit is contained in:
parent
3eb4909120
commit
48c71b566c
@ -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_EXAMPLES "build the examples for expat library" ON)
|
||||||
option(EXPAT_BUILD_TESTS "build the tests 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_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(BUILD_fuzzers "build fuzzers for the expat library" OFF)
|
||||||
option(USE_libbsd "utilize libbsd (for arc4random_buf)" OFF)
|
option(USE_libbsd "utilize libbsd (for arc4random_buf)" OFF)
|
||||||
option(INSTALL "install expat files in cmake install target" ON)
|
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)
|
set_property(TARGET xmlwf PROPERTY RUNTIME_OUTPUT_DIRECTORY xmlwf)
|
||||||
target_link_libraries(xmlwf expat)
|
target_link_libraries(xmlwf expat)
|
||||||
expat_install(TARGETS xmlwf DESTINATION ${CMAKE_INSTALL_BINDIR})
|
expat_install(TARGETS xmlwf DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
if(BUILD_doc)
|
if(EXPAT_BUILD_DOCS)
|
||||||
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/doc)
|
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")
|
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)
|
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}")
|
message(STATUS " Binary postfix ............. ${CMAKE_${_EXPAT_BUILD_TYPE_UPPER}_POSTFIX}")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "")
|
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 examples ............. ${EXPAT_BUILD_EXAMPLES}")
|
||||||
message(STATUS " Build fuzzers .............. ${BUILD_fuzzers}")
|
message(STATUS " Build fuzzers .............. ${BUILD_fuzzers}")
|
||||||
message(STATUS " Build tests ................ ${EXPAT_BUILD_TESTS}")
|
message(STATUS " Build tests ................ ${EXPAT_BUILD_TESTS}")
|
||||||
|
Loading…
Reference in New Issue
Block a user