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
c6391a7b8c
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)
|
add_library(Vulkan::Headers ALIAS Vulkan-Headers)
|
||||||
target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
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
|
# clang-cl doesn't currently support modules
|
||||||
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
|
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
|
||||||
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0"
|
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue