mirror of
https://github.com/google/googletest.git
synced 2025-12-08 01:36:50 +08:00
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.
This commit is contained in:
parent
6ec14dfd8c
commit
e1a97d4c23
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user