Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
`QtDocs_FOUND` must be true, because we specify `REQUIRED` in the
`find_package()` call.
  • Loading branch information
pcolby committed Jan 24, 2024
1 parent a0b0655 commit 27641be
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ include(FetchContent)
FetchContent_Declare(FindQtDocs GIT_REPOSITORY "https://github.com/pcolby/cmake-modules" GIT_TAG "v1")
FetchContent_MakeAvailable(FindQtDocs)
list(PREPEND CMAKE_MODULE_PATH "${findqtdocs_SOURCE_DIR}")
set(CMAKE_MESSAGE_LOG_LEVEL DEBUG)
find_package(QtDocs REQUIRED COMPONENTS Core Bluetooth)

# Include Qt doc tagfiles, if available.
if (QtDocs_FOUND)
set(QT_DOCS_BASEURL "https://doc.qt.io/qt-${QT_VERSION_MAJOR}/")
message(STATUS "Using Qt doc tagfiles ${QT_INSTALL_DOCS} => ${QT_DOCS_BASEURL}")
set(DOX_TAGFILES "\\
set(QT_DOCS_BASEURL "https://doc.qt.io/qt-${QT_VERSION_MAJOR}/")
message(STATUS "Using Qt doc tagfiles ${QT_INSTALL_DOCS} => ${QT_DOCS_BASEURL}")
set(DOX_TAGFILES "\\
\"${QtDocs_Core_TAGS}=${QT_DOCS_BASEURL}\" \\
\"${QtDocs_Bluetooth_TAGS}=${QT_DOCS_BASEURL}\" \\")
endif()

find_package(Doxygen)
if (DOXYGEN_FOUND)
Expand Down

0 comments on commit 27641be

Please sign in to comment.