Always disable glslang build for NintendoSwitch on Windows

This commit is contained in:
2026-09-06 16:06:14 +02:00
committed by tobid7
parent 5238e6b5e5
commit c6712b1975
2 changed files with 20 additions and 16 deletions
+4
View File
@@ -4,6 +4,10 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libpicasso)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "NintendoSwitch")
# SPIRV-Helper
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
# For some reason cmake is generating wrong headers for glslang on windows
set(SPV_EXCLUDE_GLSLANG ON CACHE BOOL "")
endif()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-helper)
else()
# GLAD