summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_umbrella_config/components_not_found/CMakeLists.txt
blob: 7a3f4bf7cf5dea538df218fb2079fd678c5a8572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0


# The module finds its dependencies
find_package(Qt6
    COMPONENTS Core DoesNotExist
)

if (Qt6_FOUND)
    message(SEND_ERROR "Qt6 umbrella package found, though it should not be!")
endif()

if (NOT Qt6Core_FOUND)
    message(SEND_ERROR "Qt6Core package not found!")
endif()

if (Qt6DoesNotExist_FOUND)
    message(SEND_ERROR "Non-existent package found!")
endif()