Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

valaxkong
Copy link

Change-Id: I2e77e155c134d36f36ff38f3d3bc396a48b07ff6

Copy link

google-cla bot commented Jan 22, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@valaxkong valaxkong mentioned this pull request Jan 22, 2024
Copy link
Contributor

@sergiud sergiud left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

I do not believe we should mirror the CMake documentation. An example of using FetchContent is better suited for the Wiki section of glog.

README.rst Outdated
project by replacing the :cmake:`find_package` call from the previous snippet by
:cmake:`add_subdirectory`. The :cmake:`glog::glog` target is in this case an
:cmake:`ALIAS` library target for the ``glog`` library target.
Here is an example which using :cmake:`FetchContent` and :cmake:`add_subdirectory`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to show a complete example for how to use FetchContent? This is essentially an exact mirror of the example from CMake reference documentation. In that sense, a single sentence with a link to FetchContent example should be sufficient.

@valaxkong valaxkong marked this pull request as draft January 22, 2024 12:40
@valaxkong valaxkong closed this Jan 23, 2024
@valaxkong
Copy link
Author

@sergiud
New PR: #1068

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

Successfully merging this pull request may close these issues.

2 participants