mirror of
				https://github.com/fmtlib/fmt.git
				synced 2025-11-03 23:51:41 +01:00 
			
		
		
		
	Instruct msvc to report the _true_ value in __cplusplus and force _full_ C++ conformance
				
					
				
			* do this in _some_ tests to improve test coverage and catch possible problems due to that * fix invalid export of `static constexpr` constant * fix msvc warnings about unreachable code in high warning levels
This commit is contained in:
		
				
					committed by
					
						
						Victor Zverovich
					
				
			
			
				
	
			
			
			
						parent
						
							31a5f0d399
						
					
				
				
					commit
					5221242f6e
				
			@@ -99,8 +99,10 @@ if (FMT_CAN_MODULE)
 | 
			
		||||
 | 
			
		||||
  add_fmt_test(module-test MODULE)
 | 
			
		||||
  if (MSVC)
 | 
			
		||||
    target_compile_options(test-module PRIVATE /utf-8)
 | 
			
		||||
    target_compile_options(module-test PRIVATE /utf-8)
 | 
			
		||||
    target_compile_options(test-module PRIVATE /utf-8 /Zc:__cplusplus
 | 
			
		||||
                           /Zc:externConstexpr /Zc:inline)
 | 
			
		||||
    target_compile_options(module-test PRIVATE /utf-8 /Zc:__cplusplus
 | 
			
		||||
                           /Zc:externConstexpr /Zc:inline)
 | 
			
		||||
  endif ()
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user