Merge pull request #2402 from cookcocck/fix_cmake_spdlog_use_std_format
Set c++20 when SPDLOG_USE_STD_FORMAT option is turned on
This commit is contained in:
		@@ -243,6 +243,11 @@ if(SPDLOG_NO_EXCEPTIONS AND NOT MSVC)
 | 
				
			|||||||
    target_compile_options(spdlog PRIVATE -fno-exceptions)
 | 
					    target_compile_options(spdlog PRIVATE -fno-exceptions)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if(SPDLOG_USE_STD_FORMAT)
 | 
				
			||||||
 | 
					    set(CMAKE_CXX_STANDARD 20)
 | 
				
			||||||
 | 
					    set(CMAKE_CXX_STANDARD_REQUIRED ON)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ---------------------------------------------------------------------------------------
 | 
					# ---------------------------------------------------------------------------------------
 | 
				
			||||||
# Build binaries
 | 
					# Build binaries
 | 
				
			||||||
# ---------------------------------------------------------------------------------------
 | 
					# ---------------------------------------------------------------------------------------
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user