]> granicus.if.org Git - libexpat/commitdiff
CMake: Rename BUILD_doc_default to _EXPAT_BUILD_DOCS_DEFAULT
authorSebastian Pipping <sebastian@pipping.org>
Fri, 30 Aug 2019 19:10:18 +0000 (21:10 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 30 Aug 2019 19:38:21 +0000 (21:38 +0200)
expat/CMakeLists.txt

index bc394ec96f065e4c56aa00f4f5451fe729a8b154..2e80cf065ac4419478627861e3ec3235a8359976 100644 (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)