From 6fcdb75ea6fcf813e9a7d91e73ba49c4378e502d Mon Sep 17 00:00:00 2001 From: "Hossein.M" Date: Tue, 12 Nov 2024 09:58:07 +0330 Subject: [PATCH] fix: fix build failure when project name is not mqtt_ssl fixes: #14870 --- 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 994f2f237984..750275749589 100644 --- a/examples/protocols/mqtt/ssl/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl/CMakeLists.txt @@ -6,4 +6,4 @@ cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) 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)