forked from pyrite-dev/milsko
fix compiles on machines where we have no vulkan
This commit is contained in:
parent
9856979906
commit
054b085bcd
1 changed files with 4 additions and 7 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue