From e1a97d4c234d55f301c2d2ae3945a2205b3d4203 Mon Sep 17 00:00:00 2001 From: Wuzhuodong <68279443+jo-pillar@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:29:26 +0800 Subject: [PATCH] Modify README for shared library compilation flags Update instructions for building gtest as a shared library The previous flag `GTEST_CREATE_SHARED_LIBRARY` is not supported and triggers the following CMake warning: Manually-specified variables were not used by the project: GTEST_CREATE_SHARED_LIBRARY Remove this obsolete flag and update the build instructions accordingly. --- googletest/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/README.md b/googletest/README.md index 26e48d174b..546645fe24 100644 --- a/googletest/README.md +++ b/googletest/README.md @@ -177,7 +177,7 @@ as a DLL on Windows) if you prefer. To compile *gtest* as a shared library, add ``` --DGTEST_CREATE_SHARED_LIBRARY=1 +-DBUILD_SHARED_LIBS=1 ``` to the compiler flags. You'll also need to tell the linker to produce a shared