diff --git a/tests/Makefile.common b/tests/Makefile.common index a8bb19c4f1..cfb6fe945e 100644 --- a/tests/Makefile.common +++ b/tests/Makefile.common @@ -157,7 +157,7 @@ $($(1)-sysobjs): $(testobj)/$(1)/%.o: $$$$*.c $$($(1)-config-file) # Link against Cmocka if not disabled ifeq ($(strip $(filter-out 0 n no,$($(1)-no_test_framework))),) -ifneq ($(USE_SYSTEM_CMOCKA),) +ifneq ($(USE_SYSTEM_CMOCKA),1) $($(1)-objs): TEST_CFLAGS += -I$(cmockasrc)/include $($(1)-bin): TEST_LDFLAGS += -L$(cmockaobj)/src -Wl,-rpath=$(cmockaobj)/src $($(1)-bin): TEST_CFLAGS += -I$(cmockasrc)/include