From 64d99075c8e12fed654d86b13963bf0408ae75cf Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Thu, 11 Mar 2021 20:49:21 +0100 Subject: Enable documentation build on non-Windows platforms Task-number: QTBUG-91743 Change-Id: I278397bf26b8e11076530cb341420f72bda8a435 Reviewed-by: Paul Wicking Reviewed-by: Alexandru Croitor (cherry picked from commit 03de877ae8e9da3b2d7b06268a5a2c1156ee50ee) --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 8226e14..392016c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,18 @@ project(QtActiveQt # special case LANGUAGES CXX C ) +if (NOT WIN32) + message(NOTICE "Condition \"WIN32\" is not met, enabling documentation build only.") + # special case begin + set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE) + find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals) + qt_build_repo_begin() + add_subdirectory(src/activeqt/doc) + qt_build_repo_end() + # special case end + return() +endif() + find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Qml Quick Gui Widgets PrintSupport) # special case -- cgit v1.2.3