GLSL: only build glslang if we're building samples.
We'll need this to build the GLSL backend in Dawn, since we don't want glslang there. Bug: tint:1217 Change-Id: Ied44ca89286c1d53a2e58a7083f0bfb859976770 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79500 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
parent
2d87beb200
commit
89c730dbf3
|
@ -47,5 +47,7 @@ endif()
|
|||
|
||||
if(${TINT_BUILD_GLSL_WRITER})
|
||||
set(SPIRV-Headers_SOURCE_DIR "${TINT_THIRD_PARTY_DIR}/glslang")
|
||||
add_subdirectory("${TINT_THIRD_PARTY_DIR}/glslang" "${CMAKE_BINARY_DIR}/third_party/glslang" EXCLUDE_FROM_ALL)
|
||||
if(${TINT_BUILD_SAMPLES})
|
||||
add_subdirectory("${TINT_THIRD_PARTY_DIR}/glslang" "${CMAKE_BINARY_DIR}/third_party/glslang" EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue