Merge pull request #1612 from wkaluza/fix-msvc-d9025-warning
Remove default /EHsc compiler flag
This commit is contained in:
		
						commit
						d1c1aac781
					
				@ -38,6 +38,11 @@ macro(fix_default_compiler_settings_)
 | 
			
		||||
      # We prefer more strict warning checking for building Google Test.
 | 
			
		||||
      # Replaces /W3 with /W4 in defaults.
 | 
			
		||||
      string(REPLACE "/W3" "/W4" ${flag_var} "${${flag_var}}")
 | 
			
		||||
 | 
			
		||||
      # Prevent D9025 warning for targets that have exception handling
 | 
			
		||||
      # turned off (/EHs-c- flag). Where required, exceptions are explicitly
 | 
			
		||||
      # re-enabled using the cxx_exception_flags variable.
 | 
			
		||||
      string(REPLACE "/EHsc" "" ${flag_var} "${${flag_var}}")
 | 
			
		||||
    endforeach()
 | 
			
		||||
  endif()
 | 
			
		||||
endmacro()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user