Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c79eb87c
Unverified
Commit
c79eb87c
authored
Apr 14, 2021
by
Vollstrecker
Committed by
GitHub
Apr 14, 2021
Browse files
Mention to explicitely set the option to it's default.
parent
38c316fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
googletest/README.md
googletest/README.md
+2
-0
No files found.
googletest/README.md
View file @
c79eb87c
...
@@ -96,6 +96,8 @@ FetchContent_Declare(
...
@@ -96,6 +96,8 @@ FetchContent_Declare(
googletest
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_REPOSITORY https://github.com/google/googletest.git
)
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set
(
gtest_force_shared_crt ON CACHE BOOL
""
FORCE
)
FetchContent_MakeAvailable
(
googletest
)
FetchContent_MakeAvailable
(
googletest
)
# Now simply link against gtest or gtest_main as needed. Eg
# Now simply link against gtest or gtest_main as needed. Eg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment