mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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
This commit is contained in:
parent
97132c40fd
commit
f04a0cc526
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user