treat warnings as errors on msvc as well (#11)
This commit is contained in:
		
							parent
							
								
									a4881dda8b
								
							
						
					
					
						commit
						f371ebfb86
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -47,7 +47,7 @@ if (NOT TEST_INSTALLED_VERSION) | ||||||
|   if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") |   if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||||||
|     target_compile_options(Greeter PUBLIC -Wall -pedantic -Wextra -Werror) |     target_compile_options(Greeter PUBLIC -Wall -pedantic -Wextra -Werror) | ||||||
|   elseif(MSVC) |   elseif(MSVC) | ||||||
|     target_compile_options(Greeter PUBLIC /W4) |     target_compile_options(Greeter PUBLIC /W4 /WX) | ||||||
|   endif() |   endif() | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue