You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/25 17:18:16 UTC

[nuttx-apps] branch master updated: Application.mk: Remove warning that program names mismatch

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 5058a0dba Application.mk: Remove warning that program names mismatch
5058a0dba is described below

commit 5058a0dba79541746e86082b58b5c40328220fd7
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Fri Aug 25 16:21:18 2023 +0900

    Application.mk: Remove warning that program names mismatch
    
    Avoid warning when PROGNAME contains space blank.
---
 Application.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Application.mk b/Application.mk
index 70491a459..38dda73ee 100644
--- a/Application.mk
+++ b/Application.mk
@@ -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)")