fix compiles on machines where we have no vulkan

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