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:
Aleksi Sapon 2020-09-09 07:08:38 +00:00 committed by Commit Bot service account
parent 12e97ed6a7
commit 0a1061da0c
1 changed files with 1 additions and 1 deletions

View File

@ -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 # Change the default value of SHADERC_ENABLE_SHARED_CRT to ON as that's what matches the
# CMake defaults better. # CMake defaults better.
if(MSVC) 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() endif()
message(STATUS "Dawn: using shaderc at ${DAWN_SHADERC_DIR}") message(STATUS "Dawn: using shaderc at ${DAWN_SHADERC_DIR}")