Merge pull request #4250 from shlomnissan:cmake-quickstart-update
PiperOrigin-RevId: 534150776 Change-Id: Ib6c07c6abd06c259494928102e2cb800b6652612
This commit is contained in:
		@@ -54,6 +54,7 @@ project(my_project)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# GoogleTest requires at least C++14
 | 
					# GoogleTest requires at least C++14
 | 
				
			||||||
set(CMAKE_CXX_STANDARD 14)
 | 
					set(CMAKE_CXX_STANDARD 14)
 | 
				
			||||||
 | 
					set(CMAKE_CXX_STANDARD_REQUIRED ON)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include(FetchContent)
 | 
					include(FetchContent)
 | 
				
			||||||
FetchContent_Declare(
 | 
					FetchContent_Declare(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -126,10 +126,10 @@ match the project in which it is included.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
An environment that supports C++11 is required in order to successfully build
 | 
					An environment that supports C++11 is required in order to successfully build
 | 
				
			||||||
GoogleTest. One way to ensure this is to specify the standard in the top-level
 | 
					GoogleTest. One way to ensure this is to specify the standard in the top-level
 | 
				
			||||||
project, for example by using the `set(CMAKE_CXX_STANDARD 11)` command. If this
 | 
					project, for example by using the `set(CMAKE_CXX_STANDARD 11)` command along
 | 
				
			||||||
is not feasible, for example in a C project using GoogleTest for validation,
 | 
					with `set(CMAKE_CXX_STANDARD_REQUIRED ON). If this is not feasible, for example
 | 
				
			||||||
then it can be specified by adding it to the options for cmake via the
 | 
					in a C project using GoogleTest for validation, then it can be specified by
 | 
				
			||||||
`DCMAKE_CXX_FLAGS` option.
 | 
					adding it to the options for cmake via the`-DCMAKE_CXX_FLAGS` option.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Tweaking GoogleTest
 | 
					### Tweaking GoogleTest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user