mirror of
https://github.com/KhronosGroup/Vulkan-Headers.git
synced 2025-04-11 15:12:55 +00:00
Fix MSVC identification for modules support
Can't use `MSVC` var because it is also true for clang-cl. Fixes #500.
This commit is contained in:
parent
fbda05468e
commit
9dade07e83
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ add_library(Vulkan-Headers INTERFACE)
|
|||
add_library(Vulkan::Headers ALIAS Vulkan-Headers)
|
||||
target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
||||
|
||||
if (MSVC AND (MSVC_VERSION GREATER_EQUAL "1941") OR
|
||||
if ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND (MSVC_VERSION GREATER_EQUAL "1941")) OR
|
||||
# clang-cl doesn't currently support modules
|
||||
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
|
||||
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue