Skip to content

Commit a6e545c

Browse files
Enable exceptions in glslang on MSVC (fix #684)
1 parent b620da6 commit a6e545c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ThirdParty/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ if (VULKAN_SUPPORTED OR METAL_SUPPORTED OR WEBGPU_SUPPORTED OR (ARCHIVER_SUPPORT
7171
if (NOT ${DILIGENT_NO_GLSLANG} AND (NOT TARGET glslang))
7272
set(ENABLE_GLSLANG_BINARIES OFF CACHE BOOL "Do not build glslang binaries")
7373
set(ENABLE_SPVREMAPPER OFF CACHE BOOL "Do not build SPIRV remapper")
74-
set(SKIP_GLSLANG_INSTALL ON CACHE BOOL "Skip glslang installation")
75-
set(ENABLE_CTEST OFF CACHE BOOL "Disable testing")
74+
if (MSVC)
75+
# https://github.com/DiligentGraphics/DiligentCore/issues/684
76+
set(ENABLE_EXCEPTIONS ON CACHE BOOL "Enable exceptions")
77+
endif()
7678
if (PLATFORM_WEB)
7779
# Optimization has to be disabled on Web, see build instructions on https://github.com/KhronosGroup/glslang
7880
set(ENABLE_OPT OFF)

0 commit comments

Comments
 (0)