diff options
author | Mike Schuchardt <[email protected]> | 2024-08-30 09:27:18 -0700 |
---|---|---|
committer | Charles Giessen <[email protected]> | 2024-08-30 10:54:22 -0600 |
commit | c6391a7b8cd57e79ce6b6c832c8e3043c4d9967b (patch) | |
tree | 912e88c918053ff690225e5c93cb1c7dd2ba24a3 | |
parent | fbda05468ec5956bc4f163b50c18b8df9312cdee (diff) | |
download | Vulkan-Headers-1.3.295.tar.gz Vulkan-Headers-1.3.295.zip |
Fix MSVC identification for modules supportv1.3.295
Can't use `MSVC` var because it is also true for clang-cl. Fixes #500.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fbd223e..a1d49c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" |