-
Notifications
You must be signed in to change notification settings - Fork 388
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
Simplify CMake files to always use find_package()
.
#2802
Comments
What does this mean for the |
We will add a super build (make in I believe (but have not thought much about it, nor discussed it with my colleagues) the README structure will change to:
|
Do we also want to change how we obtain nlohmann_json (build, install, |
Good question. I think we should aim to finding it via |
It should be easy to implement, I'm just asking what is the right thing to do here. We currently support the user including a potentially different version of the library, we also patch it to remove the user-defined literals. If we use |
Or maybe (but I am not certain) we can use the same version that the customer already installed, just like we do for protobuf or gRPC if they are already installed. I think we should proceed with some caution, maybe do the other dependencies first, and tackle nlohmann's json last. Thoughts? |
Given #2874 we should probably do it sooner than later. If we proceed with |
I am now convinced that we should tackle
|
One more question. The Dockerfiles in What about in |
I agree.
More difficult to answer. I think we made better calls in Spanner, so if you see one build that we should move just ask. In general I think that:
|
Some additional information. It seems at some point that they changed some of their include guards to look like this:
While we could also undef these, it is brittle and we are technically relying on an implementation detail. |
Here are two related issues: Furthermore the changelog says that the former is implemented. However, I can't seem to find any evidence of it actually being implemented. If it is implemented, we should change our approach to utilize those changes. |
Here is a tentative list of things to be done. Feel free to amend or correct as needed.
|
Agree.
This sounds unrelated maybe?
Agree. |
Perhaps, but I still see it as an improvement. There doesn't seem to be any particular reason to use Xenial just for no exceptions, so it'll cut down on one image being downloaded. |
Ack. SGTM. |
This is a large task, probably should be broken down into smaller tasks.
I would like us to consider simplifying the CMake files to always use
find_package()
to find the dependencies. Then CI builds can pre-install all the dependencies. The users can do the same, or (at their choice), use a super build that installs all the dependencies for them.We did this in googleapis/google-cloud-cpp-spanner#39 and it has been much easier to use, and I think it is easier to maintain.
The text was updated successfully, but these errors were encountered: