Application.mk: Remove warning that program names mismatch

Avoid warning when PROGNAME contains space blank.
This commit is contained in:
SPRESENSE 2023-08-25 16:21:18 +09:00 committed by Xiang Xiao
parent 0cd1901da9
commit 5058a0dba7

View File

@ -93,7 +93,7 @@ ifneq ($(BUILD_MODULE),y)
OBJS += $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJ)
endif
ifneq ($(PROGNAME),)
ifneq ($(strip $(PROGNAME)),)
PROGOBJ := $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
ifneq ($(words $(PROGOBJ)), $(words $(PROGNAME)))
$(warning "program names $(PROGNAME) does not match mainsrcs $(PROGOBJ)")