Skip to content
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

Allow already have abseil #285

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Allow already have abseil #285

merged 1 commit into from
Nov 30, 2022

Conversation

MBkkt
Copy link
Contributor

@MBkkt MBkkt commented Nov 28, 2022

We don't install abseil, we use add_subdirectory. so for us I needs patch like this.

Is it ok for you? The main idea if we already have abseil targets we don't need to find them

@smcallis
Copy link
Collaborator

This seems minor enough to be fine. Abseil should probably support this workflow upstream too. Wish CMake made this easier.

@smcallis smcallis closed this Nov 30, 2022
@smcallis smcallis reopened this Nov 30, 2022
@smcallis smcallis merged commit 1427c85 into google:master Nov 30, 2022
@MBkkt
Copy link
Contributor Author

MBkkt commented Nov 30, 2022

Thanks!

@@ -68,7 +68,9 @@ if (WITH_GFLAGS)
add_definitions(-DS2_USE_GFLAGS)
endif()

find_package(absl REQUIRED)
if (NOT TARGET absl::base)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I just saw this code without having seen the PR, I would have no idea what it's doing or why.

Could you add a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants