Fix CMake build with MSVC
Bug: None Change-Id: I061984e649f89e92e2769fd8aba141bbfdc0d4bb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28144 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
12e97ed6a7
commit
0a1061da0c
|
@ -46,7 +46,7 @@ if (NOT TARGET shaderc)
|
|||
# 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 CACHE BOOL "" FORCE)
|
||||
set(SHADERC_ENABLE_SHARED_CRT ON CACHE BOOL "Use the shared CRT instead of the static CRT")
|
||||
endif()
|
||||
|
||||
message(STATUS "Dawn: using shaderc at ${DAWN_SHADERC_DIR}")
|
||||
|
|
Loading…
Reference in New Issue