diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-30 07:51:59 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-30 08:54:36 (GMT) |
commit | 0b6332af6085b97830091e1f973f48481e8fa890 (patch) | |
tree | 918ab3ff34b4c3106665ec81f252c78da208e97e /Tests/RunCMake/FPHSA/required_components.cmake | |
parent | 2291253c1ba2f2f5f8192ba283f8291b9b6ea24f (diff) | |
download | CMake-0b6332af6085b97830091e1f973f48481e8fa890.zip CMake-0b6332af6085b97830091e1f973f48481e8fa890.tar.gz CMake-0b6332af6085b97830091e1f973f48481e8fa890.tar.bz2 |
FPHSA: REQUIRED_VARS is optional if HANDLE_COMPONENTS is specified
Fixes: #20655
Diffstat (limited to 'Tests/RunCMake/FPHSA/required_components.cmake')
-rw-r--r-- | Tests/RunCMake/FPHSA/required_components.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/required_components.cmake b/Tests/RunCMake/FPHSA/required_components.cmake new file mode 100644 index 0000000..0dd8e9c --- /dev/null +++ b/Tests/RunCMake/FPHSA/required_components.cmake @@ -0,0 +1,11 @@ +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() |