-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy of FindGflags.cmake in cmake/ and minor compilation fixes in tests #28
Conversation
Consistent with other CMake find scripts, otherwise cmake 3.10.3 does not find it.
Member function call of test class not found inside a lambda, unless this is specified explicitly with g++ 5.4.0.
Test class must defined explicitly. EXPECT_EQ() with Boolean values transformed into EXPECT_TRUE()/EXPECT_FALSE(), preventing a compiler warning (g++ 5.4.0).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lnicco has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
thanks @ccicconetti ;) |
Very good, indeed. Duplicating the FindGflags script never looked like a permanent solution to me, as well, but rather a work-around to get through compilation. Glad to know there is ongoing work on this. Actually, the worst part for me was to stubbornly try to build with cmake 3.5.1 (latest version shipped on Ubuntu 16.04), which works fine with folly and fizz, but not mvfst. Eventually I had to give up and install a local copy of a newer version of cmake, which went smooth. In Ubuntu 18.04 all was OK first try. |
yeah mvfst currently has some dependencies on cmake >= 3.10
@udippant knows more about that. The system closes the PR automatically on commit. |
Summary: X-link: facebook/fb303#28 X-link: facebook/fboss#115 X-link: facebook/folly#1736 X-link: facebook/proxygen#403 X-link: facebook/fbthrift#488 This adds a way to pass arguments to the `b2` build tool, used by Boost. This is needed in order to link a getdeps built boost into an relocatable `.so`. The motivating use case is that we need to statically link Boost into a native library used by a python wheel, which must be relocatable. This functionality already exists for CMake-based projects. Reviewed By: mackorone Differential Revision: D34796774 fbshipit-source-id: 0d6a9f4703865dc02048b87e77394c44ef646af6
On Ubuntu 16.04 cmake 3.10.3 does not find the FindFlags.cmake unless it is copied in the cmake/ directory, which in fact already contains other cmake find scripts.
Changes to unit tests are very minor only to allow compilation with gcc 5.4.0 (not tested with other compilers).