ros / homebrew-hydro

Hydro packages and dependencies repository for Homebrew
2 stars 7 forks source link

Update gtest.rb #5

Closed Lenskiy closed 10 years ago

Lenskiy commented 10 years ago

I've added a compilation flag "CPPFLAGS=-DGTEST_HAS_TR1_TUPLE=0" to be able to build gtest on OSX 10.9 / Xcode 5.0.1. I am not sure how to obtain MacOS version, then I would have added 'if' condition. Please test it on previous versions of OSX.

jensenb commented 10 years ago

Have you guys had success with ROS packages using the version of GTest from this formula on Mavericks? I had several ROS packages (mostly from diagnostics-release) that wouldn't compile due to GTest tr1 errors. In the end I solved it by patching GTest to detect libc++ and use the correct namespaces.