mirror of https://github.com/stenzek/duckstation
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			9 lines
		
	
	
		
			230 B
		
	
	
	
		
			CMake
		
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			230 B
		
	
	
	
		
			CMake
		
	
| 
								 
											6 years ago
										 
									 | 
							
								include(CheckCXXCompilerFlag)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function(check_cxx_flag flag var)
							 | 
						||
| 
								 | 
							
								    CHECK_CXX_COMPILER_FLAG("-Werror ${flag}" ${var})
							 | 
						||
| 
								 | 
							
								    if(${var})
							 | 
						||
| 
								 | 
							
								       set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
							 | 
						||
| 
								 | 
							
								    endif()
							 | 
						||
| 
								 | 
							
								endfunction()
							 |