diff --git a/README.md b/README.md index cb432fa..96f3977 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ $ sudo cmake --build . --target install Option for including sdbus-c++ documentation files and tutorials. Default value: `ON`. With this option turned on, you may also enable/disable the following option: - * `BUILD_DOXYGEN_DOC` [boolean] + * `SDBUSCPP_BUILD_DOXYGEN_DOCS` [boolean] - Option for building Doxygen documentation of sdbus-c++ API. If enabled, the documentation must still be built explicitly through `cmake --build . --target doc`. Default value: `OFF`. Use `-DBUILD_DOXYGEN_DOC=OFF` to disable searching for Doxygen and building Doxygen documentation of sdbus-c++ API. + Option for building Doxygen documentation of sdbus-c++ API. If enabled, the documentation must still be built explicitly through `cmake --build . --target doc`. Default value: `OFF`. Use `-DSDBUSCPP_BUILD_DOXYGEN_DOCS=OFF` to disable searching for Doxygen and building Doxygen documentation of sdbus-c++ API. * `SDBUSCPP_BUILD_TESTS` [boolean] diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 862503f..35aefec 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -2,7 +2,7 @@ find_package(Doxygen) -if(BUILD_DOXYGEN_DOC) +if(SDBUSCPP_BUILD_DOXYGEN_DOCS) if(DOXYGEN_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) @@ -27,7 +27,7 @@ if(SDBUSCPP_INSTALL) using-sdbus-c++.md DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT sdbus-c++-doc) - if (BUILD_DOXYGEN_DOC AND DOXYGEN_FOUND) + if (SDBUSCPP_BUILD_DOXYGEN_DOCS AND DOXYGEN_FOUND) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR} OPTIONAL COMPONENT sdbus-c++-doc) endif() endif()