mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
CMake: Add support for the D3D12 backend
Bug: dawn:333 Change-Id: I61defcd7d5a66fc728c92d1e702ed09b5c84968f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/16000 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
bc34d908f6
commit
33466973bc
6
third_party/CMakeLists.txt
vendored
6
third_party/CMakeLists.txt
vendored
@@ -48,6 +48,12 @@ else()
|
||||
set(SHADERC_SKIP_INSTALL ON)
|
||||
set(SHADERC_ENABLE_SPVC ON)
|
||||
|
||||
# Change the default value of SHADERC_ENABLE_SHARED_CRT to ON as that's what matches the
|
||||
# CMake defaults better.
|
||||
if(MSVC)
|
||||
option(SHADERC_ENABLE_SHARED_CRT "Use the shared CRT instead of the static CRT" ON)
|
||||
endif()
|
||||
|
||||
# Let SPVC's CMakeLists.txt deal with configuring SPIRV-Cross
|
||||
set(SPIRV_CROSS_ENABLE_TESTS OFF)
|
||||
set(SHADERC_SPIRV_CROSS_DIR "${DAWN_SPIRV_CROSS_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user