mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 13:09:38 +00:00 
			
		
		
		
	 0798691bf0
			
		
	
	0798691bf0
	
	
	
		
			
			Protocol examples used to raise an error if the target was not set and `idf.py build` command was used. This commit fix this error and when IDF_TARGET is not set, ESP32 is selected as default target
		
			
				
	
	
		
			15 lines
		
	
	
		
			577 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			577 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # Embed the server root certificate into the final binary
 | |
| #
 | |
| # (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
 | |
| set(requires "")
 | |
| idf_build_get_property(target IDF_TARGET)
 | |
| 
 | |
| if(${target} STREQUAL "linux")
 | |
|     list(APPEND requires esp_stubs esp_event esp-tls esp_http_client protocol_examples_common nvs_flash)
 | |
| endif()
 | |
| idf_component_register(SRCS "esp_http_client_example.c"
 | |
|                     INCLUDE_DIRS "."
 | |
|                     REQUIRES ${requires}
 | |
|                     EMBED_TXTFILES howsmyssl_com_root_cert.pem
 | |
|                     postman_root_cert.pem)
 |