mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			449 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			449 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
include(CheckIncludeFileCXX)
 | 
						|
 | 
						|
check_include_file_cxx("source_location" SOURCE_LOCATION_AVAILABLE)
 | 
						|
if (SOURCE_LOCATION_AVAILABLE)
 | 
						|
  target_compile_definitions(clio_options INTERFACE "HAS_SOURCE_LOCATION")
 | 
						|
endif ()
 | 
						|
 | 
						|
check_include_file_cxx("experimental/source_location" EXPERIMENTAL_SOURCE_LOCATION_AVAILABLE)
 | 
						|
if (EXPERIMENTAL_SOURCE_LOCATION_AVAILABLE)
 | 
						|
  target_compile_definitions(clio_options INTERFACE "HAS_EXPERIMENTAL_SOURCE_LOCATION")
 | 
						|
endif ()
 |