You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmake: Workaround MSVC module support compiler bug
Adds the VULKAN_HEADERS_ENABLE_MODULE option to control whether to build the Vulkan-Hpp module.
This is necessary to allow CI to pass while waiting for the MSVC version 17.11, which fixes an
internal compiler bug, to be added to github actions runners.
Copy file name to clipboardExpand all lines: CMakeLists.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,9 @@ if (MSVC AND (MSVC_VERSION GREATER_EQUAL "1934") OR
48
48
set(COMPILER_SUPPORTS_CXX_MODULES TRUE)
49
49
endif()
50
50
51
+
option(VULKAN_HEADERS_ENABLE_MODULE "Enables building of the Vulkan C++ module. Default is true if supported by the CMake version and compilers"${COMPILER_SUPPORTS_CXX_MODULES})
51
52
52
-
if (CMAKE_VERSIONVERSION_GREATER_EQUAL"3.28"ANDCOMPILER_SUPPORTS_CXX_MODULES)
53
+
if (CMAKE_VERSIONVERSION_GREATER_EQUAL"3.28"ANDVULKAN_HEADERS_ENABLE_MODULE)
53
54
add_library(Vulkan-Module)
54
55
add_library(Vulkan::VulkanHppModule ALIAS Vulkan-Module)
0 commit comments