mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -05:00
0b6332af60
Fixes: #20655
12 lines
386 B
CMake
12 lines
386 B
CMake
find_package(UseComponents COMPONENTS Comp1 Comp2)
|
|
|
|
if (NOT UseComponents_FOUND)
|
|
message (FATAL_ERROR "package UseComponents Not Found.")
|
|
endif()
|
|
if (NOT UseComponents_Comp1_FOUND)
|
|
message (FATAL_ERROR "package UseComponents, component Comp1 Not Found.")
|
|
endif()
|
|
if (NOT UseComponents_Comp2_FOUND)
|
|
message (FATAL_ERROR "package UseComponents, component Comp2 Not Found.")
|
|
endif()
|