summaryrefslogtreecommitdiffstats
path: root/Modules/FindVulkan.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-17 14:16:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-17 14:16:10 (GMT)
commit8ad94b1977b7e0733d12d02a696d3cc79382b052 (patch)
tree5f3871f5bbb98a8e18fe7756f2897870c3a50b13 /Modules/FindVulkan.cmake
parent2216826ff81e97276bef65dde54fe24293f44ea0 (diff)
parent9063674517e4244155f8286c2106dfb2707be0f4 (diff)
downloadCMake-8ad94b1977b7e0733d12d02a696d3cc79382b052.zip
CMake-8ad94b1977b7e0733d12d02a696d3cc79382b052.tar.gz
CMake-8ad94b1977b7e0733d12d02a696d3cc79382b052.tar.bz2
Merge topic 'FindVulkan-tolerate-FATAL_ERROR'
9063674517 Help: Add 3.24 release note about FindVulkan component enforcement bc01362368 FindVulkan: Restore tolerance of unknown FATAL_ERROR component Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7583
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r--Modules/FindVulkan.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 2f69234..3817987 100644
--- a/Modules/FindVulkan.cmake
+++ b/Modules/FindVulkan.cmake
@@ -222,6 +222,16 @@ environment.
cmake_policy(PUSH)
cmake_policy(SET CMP0057 NEW)
+# Provide compatibility with a common invalid component request that
+# was silently ignored prior to CMake 3.24.
+if("FATAL_ERROR" IN_LIST Vulkan_FIND_COMPONENTS)
+ message(AUTHOR_WARNING
+ "Ignoring unknown component 'FATAL_ERROR'.\n"
+ "The find_package() command documents no such argument."
+ )
+ list(REMOVE_ITEM Vulkan_FIND_COMPONENTS "FATAL_ERROR")
+endif()
+
# For backward compatibility as `FindVulkan` in previous CMake versions allow to retrieve `glslc`
# and `glslangValidator` without requesting the corresponding component.
if(NOT glslc IN_LIST Vulkan_FIND_COMPONENTS)