From cfadf71093dca08fd405add27f98e819fe096b5f Mon Sep 17 00:00:00 2001 From: "Hossein.M" Date: Tue, 12 Nov 2024 09:58:07 +0330 Subject: [PATCH 1/2] fix: fix build failure when project name is not mqtt_ssl fixes: #14870 Closes https://github.com/espressif/esp-idf/pull/14871 --- examples/protocols/mqtt/ssl/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/protocols/mqtt/ssl/CMakeLists.txt b/examples/protocols/mqtt/ssl/CMakeLists.txt index 699c86d926..e41e1b8e46 100644 --- a/examples/protocols/mqtt/ssl/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl/CMakeLists.txt @@ -8,4 +8,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake) idf_build_set_property(MINIMAL_BUILD ON) project(mqtt_ssl) -target_add_binary_data(mqtt_ssl.elf "main/mqtt_eclipseprojects_io.pem" TEXT) +target_add_binary_data(${PROJECT_NAME}.elf "main/mqtt_eclipseprojects_io.pem" TEXT) From d50fbe77d4288f273c3520f6251f7581a7953186 Mon Sep 17 00:00:00 2001 From: Euripedes Rocha Date: Wed, 18 Jun 2025 09:59:17 +0200 Subject: [PATCH 2/2] fix(mqtt): Make example binary data consistent Improves user experience when copying examples to use as starting point. --- examples/protocols/mqtt/wss/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/protocols/mqtt/wss/CMakeLists.txt b/examples/protocols/mqtt/wss/CMakeLists.txt index 158bc62ca4..e62d88e13f 100644 --- a/examples/protocols/mqtt/wss/CMakeLists.txt +++ b/examples/protocols/mqtt/wss/CMakeLists.txt @@ -8,4 +8,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake) idf_build_set_property(MINIMAL_BUILD ON) project(mqtt_websocket_secure) -target_add_binary_data(mqtt_websocket_secure.elf "main/mqtt_eclipseprojects_io.pem" TEXT) +target_add_binary_data(${PROJECT_NAME}.elf "main/mqtt_eclipseprojects_io.pem" TEXT)