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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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,