mirror of
https://github.com/KhronosGroup/Vulkan-Headers
synced 2024-11-21 06:26:00 -07:00
cmake: Document vlk_get_header_version
This commit is contained in:
parent
9085224a1b
commit
a0c76b4ef7
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@
|
|||
# ~~~
|
||||
cmake_minimum_required(VERSION 3.15...3.25)
|
||||
|
||||
# NOTE: Parsing the version like this is suboptimal but neccessary due to our release process:
|
||||
# https://github.com/KhronosGroup/Vulkan-Headers/pull/346
|
||||
#
|
||||
# As shown a more robust approach would be just to add basic test code to check the project version.
|
||||
function(vlk_get_header_version)
|
||||
set(vulkan_core_header_file "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan/vulkan_core.h")
|
||||
if (NOT EXISTS ${vulkan_core_header_file})
|
||||
|
|
Loading…
Reference in a new issue