From 6ec3eb98c402ea8e1a380eabecc8927800c2aa47 Mon Sep 17 00:00:00 2001 From: Lingshang Kong Date: Mon, 22 Jan 2024 18:49:56 +0800 Subject: [PATCH] docs: Add a link to CMake doc which shows the usage of FetchContent and add_subdirectory Change-Id: I2e77e155c134d36f36ff38f3d3bc396a48b07ff6 --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index d9f437415..6bc15a47e 100644 --- a/README.rst +++ b/README.rst @@ -77,6 +77,8 @@ target as needed. Alternatively, glog can be incorporated into using the CMake command :cmake:`add_subdirectory` to include glog directly from a subdirectory of your project by replacing the :cmake:`find_package` call from the previous snippet by +:cmake:`add_subdirectory`. The CMake official `document `__ +shows the way that enables glog in your CMake project via :cmake:`FetchContent` and :cmake:`add_subdirectory`. The :cmake:`glog::glog` target is in this case an :cmake:`ALIAS` library target for the ``glog`` library target.