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.
This commit is contained in:
parent
5952791798
commit
fc6c06ac52
1 changed files with 3 additions and 2 deletions
|
|
@ -43,8 +43,9 @@ 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 (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
|
# clang-cl doesn't currently support modules
|
||||||
CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14.0")
|
(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)
|
set(COMPILER_SUPPORTS_CXX_MODULES TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue