mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 15:11:40 +01:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			369 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			369 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
|   | if(NOT IDF_PATH)
 | ||
|  |     message(FATAL_ERROR "IDF_PATH not set.")
 | ||
|  | endif()
 | ||
|  | include("${IDF_PATH}/tools/cmake/utilities.cmake")
 | ||
|  | spaces2list(CMD)
 | ||
|  | 
 | ||
|  | execute_process(COMMAND ${CMD} | ||
|  |     WORKING_DIRECTORY "${WORKING_DIRECTORY}"
 | ||
|  |     RESULT_VARIABLE result
 | ||
|  |     )
 | ||
|  | 
 | ||
|  | if(${result})
 | ||
|  |     # No way to have CMake silently fail, unfortunately
 | ||
|  |     message(FATAL_ERROR "${TOOL} failed")
 | ||
|  | endif()
 |