Use GLOBs to get macOS vulkan framework headers
authorCharles Giessen <charles@lunarg.com>
Wed, 3 Nov 2021 21:04:48 +0000 (15:04 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 9 Mar 2022 22:06:30 +0000 (15:06 -0700)
commita30d1eeb7b8b94ac3d240c6779aa5cfd14d690be
tree1234950fd2459ba9ba2ef99fc3578cfa21afc713
parentab0fe52705ee2f37b102dd6cbe9c7a81fa2afa20
Use GLOBs to get macOS vulkan framework headers

This commit recitfies the situation that this list of header files is out of
date with the upstream Vulkan-Headers repo. It uses GLOB_RECURSE to find all
the files and subdirectories in the vulkan headers include directory.
In a perfect world, the list of headers would be removed because users should
be using the Vulkan-Headers for that purpose. But to maintain any existing
users it will be retained.

CMake 3.12 added CONFIGURE_DEPENDS to globs to better support changes in the
list being caught by CMake. Since this repo uses 3.11 as the minimum, it will
not be added unless supported by the currently installed CMake version. While
better, it is not perfect at catching all changing file lists, and thus it
may still be necessary to re-run CMake manually to get an updated list of
headers files.

Note that this commit is a part of a series of commits and not intended to
work standalone.
loader/CMakeLists.txt