mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	[CMake] When building with MSVC and without WARNINGS_AS_ERRORS
				
					
				
			pass `/WX-` to MSVC. Although this is not necessary this duplicates the behaviour of the old build system.
This commit is contained in:
		
							parent
							
								
									870be706e9
								
							
						
					
					
						commit
						5893aea602
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -44,4 +44,11 @@ if (WARNINGS_AS_ERRORS)
 | 
				
			||||||
  message(STATUS "Treating compiler warnings as errors")
 | 
					  message(STATUS "Treating compiler warnings as errors")
 | 
				
			||||||
else()
 | 
					else()
 | 
				
			||||||
  message(STATUS "Not treating compiler warnings as errors")
 | 
					  message(STATUS "Not treating compiler warnings as errors")
 | 
				
			||||||
 | 
					  # FIXME: Remove "x.." when CMP0054 is set to NEW
 | 
				
			||||||
 | 
					  if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
 | 
				
			||||||
 | 
					    # Warnings as errors is off by default for MSVC so setting this
 | 
				
			||||||
 | 
					    # is not necessary but this duplicates the behaviour of the old
 | 
				
			||||||
 | 
					    # build system.
 | 
				
			||||||
 | 
					    list(APPEND Z3_COMPONENT_CXX_FLAGS "/WX-")
 | 
				
			||||||
 | 
					  endif()
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue