fix: bypass Manually-specified variables were not used by the project warning

the variable "IDF_TARGET" is only used under a if clause
"if(ULP_C0CPU_IS_RISCV)". while building a non-riscv target,
there will be a cmake warning:

CMake Warning:
  Manually-specified variables were not used by the project:

    IDF_TARGET
pull/9408/head
Fu Hanxi 2022-07-13 11:11:19 +08:00
rodzic 97132c40fd
commit f04a0cc526
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -68,6 +68,8 @@ add_custom_target(${ULP_APP_NAME}_ld_script
DEPENDS ${ULP_LD_SCRIPT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# To avoid warning "Manually-specified variables were not used by the project"
set(bypassWarning "${IDF_TARGET}")
if(ULP_COCPU_IS_RISCV)
#risc-v ulp uses extra files for building:
list(APPEND ULP_S_SOURCES