Because TravisCI evaluates MSVC true in linux and apple
Workaround by replacing if (MSVC) with if (MSVC AND WIN32)
This commit is contained in:
parent
133af4a9c2
commit
39a140ac9d
@ -21,7 +21,7 @@ if (NOT SUPPORTS_VARIADIC_TEMPLATES)
|
||||
target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0)
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
if (MSVC AND WIN32)
|
||||
# Workaround a bug in implementation of variadic templates in MSVC11.
|
||||
target_compile_definitions(gmock PUBLIC _VARIADIC_MAX=10)
|
||||
# Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user