mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			367 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			367 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| file(
 | |
|   DOWNLOAD "${URL}" "${FILE}"
 | |
|   STATUS status
 | |
|   LOG log
 | |
| )
 | |
| 
 | |
| list(GET status 0 status_code)
 | |
| list(GET status 1 status_string)
 | |
| 
 | |
| if(NOT status_code EQUAL 0)
 | |
|   if(NOT ALLOW_FAILURE)
 | |
|       message(FATAL_ERROR "error: downloading '${URL}' failed
 | |
|         status_code: ${status_code}
 | |
|         status_string: ${status_string}
 | |
|         log: ${log}
 | |
|       ")
 | |
|   endif()
 | |
| endif()
 | 
