Skip to content

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
Contributor

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!

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.

3 participants