cmake: Document vlk_get_header_version
This commit is contained in:
parent
9085224a1b
commit
a0c76b4ef7
@ -7,6 +7,10 @@
|
|||||||
# ~~~
|
# ~~~
|
||||||
cmake_minimum_required(VERSION 3.15...3.25)
|
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)
|
function(vlk_get_header_version)
|
||||||
set(vulkan_core_header_file "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan/vulkan_core.h")
|
set(vulkan_core_header_file "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan/vulkan_core.h")
|
||||||
if (NOT EXISTS ${vulkan_core_header_file})
|
if (NOT EXISTS ${vulkan_core_header_file})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user