Because TravisCI evaluates MSVC true in linux and apple

Workaround by replacing

if (MSVC)
with
if (MSVC AND WIN32)
This commit is contained in:
denchat 2019-05-09 17:38:00 +07:00 committed by GitHub
parent 133af4a9c2
commit 39a140ac9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ if (NOT SUPPORTS_VARIADIC_TEMPLATES)
target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0) target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0)
endif () endif ()
if (MSVC) if (MSVC AND WIN32)
# Workaround a bug in implementation of variadic templates in MSVC11. # Workaround a bug in implementation of variadic templates in MSVC11.
target_compile_definitions(gmock PUBLIC _VARIADIC_MAX=10) target_compile_definitions(gmock PUBLIC _VARIADIC_MAX=10)
# Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions. # Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions.