Skip to content

Commit 8aef0ed

Browse files
committed
docs: give a example to show how to import glog by add_subdirectory
Change-Id: I2e77e155c134d36f36ff38f3d3bc396a48b07ff6
1 parent 9b34110 commit 8aef0ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ target as needed.
7777
Alternatively, glog can be incorporated into using the CMake command
7878
:cmake:`add_subdirectory` to include glog directly from a subdirectory of your
7979
project by replacing the :cmake:`find_package` call from the previous snippet by
80+
:cmake:`add_subdirectory`. The CMake official `document <https://cmake.org/cmake/help/latest/module/FetchContent.html#overview>`__
81+
shows the way that enables glog in your CMake project via :cmake:`FetchContent` and
8082
:cmake:`add_subdirectory`. The :cmake:`glog::glog` target is in this case an
8183
:cmake:`ALIAS` library target for the ``glog`` library target.
8284

0 commit comments

Comments
 (0)