mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-15 11:10:19 -06:00
Merge topic 'FindVulkan-tolerate-FATAL_ERROR' into release-3.24
9063674517Help: Add 3.24 release note about FindVulkan component enforcementbc01362368FindVulkan: Restore tolerance of unknown FATAL_ERROR component Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7583
This commit is contained in:
@@ -317,6 +317,11 @@ Deprecated and Removed Features
|
||||
* The :module:`FindGLUT` module no longer provides the undocumented
|
||||
``GLUT_LIBRARY`` and ``GLUT_INCLUDE_PATH`` result variables.
|
||||
|
||||
* The :module:`FindVulkan` module no longer silently ignores unknown
|
||||
components requested by a ``find_package(Vulkan REQUIRED ...)`` call.
|
||||
With the addition of support for components, requests for unknown
|
||||
components now produce an error.
|
||||
|
||||
Other Changes
|
||||
=============
|
||||
|
||||
|
||||
@@ -172,6 +172,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)
|
||||
|
||||
Reference in New Issue
Block a user