mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Fix VS clang-cl build
* Disable "undefined-var-template" in code, rather than in build files * Add back some missing headers required when building in this context * Make sure gtest/gmock do not override the default runtime library Change-Id: I12c05943fc1d2dee4733ae70db7da026f67e0dad Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44180 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
5fb87dd915
commit
6ce58becd2
1
third_party/CMakeLists.txt
vendored
1
third_party/CMakeLists.txt
vendored
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
if (${TINT_BUILD_TESTS} AND NOT TARGET gmock)
|
||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/googletest EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user