mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-14 16:58:43 +00:00
Fix Clang on Windows build
You can you MSVC, clang, or clang-cl on Windows.
This commit is contained in:
parent
fb09bb3bc4
commit
7b779960f1
1 changed files with 3 additions and 3 deletions
|
@ -37,13 +37,13 @@ elseif(MSVC)
|
|||
if (MSVC_IDE)
|
||||
target_compile_options(VulkanCompilerConfiguration INTERFACE /MP)
|
||||
endif()
|
||||
|
||||
# Minimize what Windows.h leaks
|
||||
target_compile_definitions(VulkanCompilerConfiguration INTERFACE NOMINMAX WIN32_LEAN_AND_MEAN)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(VulkanCompilerConfiguration INTERFACE VK_ENABLE_BETA_EXTENSIONS)
|
||||
if(WIN32)
|
||||
# Minimize what Windows.h leaks
|
||||
target_compile_definitions(VulkanCompilerConfiguration INTERFACE NOMINMAX WIN32_LEAN_AND_MEAN)
|
||||
|
||||
target_compile_definitions(VulkanCompilerConfiguration INTERFACE VK_USE_PLATFORM_WIN32_KHR)
|
||||
elseif(ANDROID)
|
||||
target_compile_definitions(VulkanCompilerConfiguration INTERFACE VK_USE_PLATFORM_ANDROID_KHR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue