diff --git a/components/ulp/cmake/CMakeLists.txt b/components/ulp/cmake/CMakeLists.txt index 1da07bd0b5..9d42579931 100644 --- a/components/ulp/cmake/CMakeLists.txt +++ b/components/ulp/cmake/CMakeLists.txt @@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.16) include(${IDF_PATH}/tools/cmake/idf.cmake) project(${ULP_APP_NAME}) add_executable(${ULP_APP_NAME}) -set(CMAKE_EXECUTABLE_SUFFIX ".elf") include(IDFULPProject) diff --git a/components/ulp/cmake/IDFULPProject.cmake b/components/ulp/cmake/IDFULPProject.cmake index 13614ba844..7745dc13fb 100644 --- a/components/ulp/cmake/IDFULPProject.cmake +++ b/components/ulp/cmake/IDFULPProject.cmake @@ -1,5 +1,6 @@ include(${SDKCONFIG_CMAKE}) enable_language(C ASM) +set(CMAKE_EXECUTABLE_SUFFIX ".elf") # Check the supported assembler version if(CONFIG_ULP_COPROC_TYPE_FSM)