How can I know the gmock/gtest version at compile time?

2,213 views
Skip to first unread message

dani

unread,
Apr 27, 2012, 11:56:21 AM4/27/12
to Google C++ Testing Framework
I need to workaround a problem we have in gmock 1.6, and I need to
know the gmock version at compile time.

Could you a #define GMOCK_MAJOR/GMOCK_MINOR macros?

thanks

Zhanyong Wan (λx.x x)

unread,
Apr 27, 2012, 1:26:16 PM4/27/12
to dani, Google C++ Testing Framework
Hi,
Usually we recommend that a project includes its own copy of gmock +
gtest. Could you explain why your code needs to work with more than
one version of gmock? And what problem are you having with gmock 1.6?
Thanks,

--
Zhanyong
Reply all
Reply to author
Forward
0 new messages