Skip to content

Commit b95e91f

Browse files
committed
fix for wildcard support
1 parent bebc126 commit b95e91f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk

+7-4
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,14 @@ define parse_addon
149149
$(eval TMP_PROJECT_ADDONS_CFLAGS += $(ADDON_CPPFLAGS)) \
150150
$(if $(strip $(ADDON_LIBS)), \
151151
$(foreach addon_lib, $(strip $(ADDON_LIBS)), \
152-
$(if $(wildcard $(addon)/$(addon_lib)), \
153-
$(eval TMP_PROJECT_ADDONS_LIBS += $(addon)/$(addon_lib)) \
152+
$(eval lib_pattern := $(subst %,*,$(addon_lib))) \
153+
$(eval match := $(wildcard $(addon)/$(lib_pattern))) \
154+
$(if $(match), \
155+
$(eval TMP_PROJECT_ADDONS_LIBS += $(match)) \
154156
) \
155-
$(if $(wildcard $(addon_lib)), \
156-
$(eval TMP_PROJECT_ADDONS_LIBS += $(addon_lib)) \
157+
$(eval match_global := $(wildcard $(lib_pattern))) \
158+
$(if $(match_global), \
159+
$(eval TMP_PROJECT_ADDONS_LIBS += $(match_global)) \
157160
) \
158161
) \
159162
) \

0 commit comments

Comments
 (0)