From 62b2d05d34b3ecca08e531709b4a7f809c108047 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 1 Jun 2023 12:50:32 +0700 Subject: [PATCH] skip set CMAKE_EXECUTABLE_SUFFIX for espressif port --- hw/bsp/family_support.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake index e3f2f45ff..69290ceec 100644 --- a/hw/bsp/family_support.cmake +++ b/hw/bsp/family_support.cmake @@ -84,8 +84,10 @@ endfunction() function(family_initialize_project PROJECT DIR) - # set output suffix to .elf - set(CMAKE_EXECUTABLE_SUFFIX .elf PARENT_SCOPE) + # set output suffix to .elf (skip espressif) + if(NOT FAMILY STREQUAL "espressif") + set(CMAKE_EXECUTABLE_SUFFIX .elf PARENT_SCOPE) + endif() family_filter(ALLOWED "${DIR}") if (NOT ALLOWED)