summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_umbrella_config/components_not_found/CMakeLists.txt
blob: 424c3e34455c4b7e21d4fbac0bfa28fc75cf8d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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

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

if (NOT Qt5Core_FOUND)
    message(SEND_ERROR "Qt5Core package not found!")
endif()

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