Increase the template nesting depth for clang. (#1995)

We started hitting this limit, so increaseing from 256 to 1024.

Fixes #1994.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28077f2..0f992fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -139,6 +139,8 @@
         target_compile_options(${TARGET} PRIVATE
           -fsanitize=${SPIRV_USE_SANITIZER})
       endif()
+      target_compile_options(${TARGET} PRIVATE
+         -ftemplate-depth=1024)
     else()
       target_compile_options(${TARGET} PRIVATE
          -Wno-missing-field-initializers)