diff options
author | Charles Giessen <[email protected]> | 2024-07-12 13:52:17 -0500 |
---|---|---|
committer | Charles Giessen <[email protected]> | 2024-07-12 14:13:48 -0500 |
commit | fc6c06ac529e4b4b6e34c17cc650a8f62dee2eb0 (patch) | |
tree | 0207cc868dd347f47b6f74aa8bb8f4ffd2528547 | |
parent | 59527917988fe6cce9e35d75e00b4cc030167e7c (diff) | |
download | Vulkan-Headers-fc6c06ac529e4b4b6e34c17cc650a8f62dee2eb0.tar.gz Vulkan-Headers-fc6c06ac529e4b4b6e34c17cc650a8f62dee2eb0.zip |
Disable VulkanHppModule support in clang-cl
The current released versions of clang-cl does not work with CMakes
module implementation. Rather than break downstream users, just disable
the module support for the time being.
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 233bcc0..eef8c2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,8 +43,9 @@ 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 - CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0" OR - CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14.0") + # clang-cl doesn't currently support modules + (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0" AND (NOT CMAKE_C_COMPILER_FRONTEND_VARIANT MATCHES "MSVC")) OR + (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14.0")) set(COMPILER_SUPPORTS_CXX_MODULES TRUE) endif() |