Always disable glslang build for NintendoSwitch on Windows

This commit is contained in:
2026-09-06 16:16:27 +02:00
parent ff6c023aeb
commit 63db207e47
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) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libpicasso)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "NintendoSwitch") elseif(${CMAKE_SYSTEM_NAME} STREQUAL "NintendoSwitch")
# SPIRV-Helper # 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) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-helper)
else() else()
# GLAD # GLAD