Always disable glslang build for NintendoSwitch on Windows

This commit is contained in:
2026-09-06 15:58:10 +02:00
parent 191bca26d5
commit 594cf5cca4
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