aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/README.md
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2017-10-20 17:25:41 -0400
committerGitHub <noreply@github.com>2017-10-20 17:25:41 -0400
commitc208d8df23d6bd4fbe153a34d092aff0fddbc6a5 (patch)
tree820e437ce56c2a4c0d39b783176bf1db1605a283 /googletest/README.md
parent3eaba9f07c5f81a8b83432e4ae389ee42337393f (diff)
parent69e48e92de43960a316a826293510b7b3deb9eca (diff)
downloadgoogletest-c208d8df23d6bd4fbe153a34d092aff0fddbc6a5.tar.gz
googletest-c208d8df23d6bd4fbe153a34d092aff0fddbc6a5.tar.bz2
googletest-c208d8df23d6bd4fbe153a34d092aff0fddbc6a5.zip
Merge branch 'master' into master
Diffstat (limited to 'googletest/README.md')
-rw-r--r--googletest/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/googletest/README.md b/googletest/README.md
index cdebd9df..f273a7de 100644
--- a/googletest/README.md
+++ b/googletest/README.md
@@ -183,6 +183,17 @@ technique is discussed in more detail in
which also contains a link to a fully generalized implementation
of the technique.
+##### Visual Studio Dynamic vs Static Runtimes #####
+
+By default, new Visual Studio projects link the C runtimes dynamically
+but Google Test links them statically.
+This will generate an error that looks something like the following:
+ gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in main.obj
+
+Google Test already has a CMake option for this: `gtest_force_shared_crt`
+
+Enabling this option will make gtest link the runtimes dynamically too,
+and match the project in which it is included.
### Legacy Build Scripts ###