fix compiles on machines where we have no vulkan
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
IoI_xD 2026-08-08 16:32:11 -07:00
commit 054b085bcd

View file

@ -85,7 +85,7 @@ if(MW_TRY_VULKAN)
if(${Vulkan_FOUND})
set(MW_BUILD_VULKAN ON)
message(STATUS "Vulkan widget has been enabled")
else(
else()
message(WARNING "Vulkan widget has been disabled")
endif()
endif()
@ -466,17 +466,14 @@ if(MW_BUILD_VULKAN)
)
endif()
check_include_files(vulkan/VULKAN.h HAS_VK_HEADER)
if(HAS_VK_HEADER)
target_compile_definitions(
Mw
PRIVATE
MW_VULKAN
)
else()
target_compile_definitions(
Mw
PRIVATE
MW_VULKAN_NO_INCLUDE
)
endif()
endif()
target_compile_definitions(