Skip to content

Commit 9a6aeab

Browse files
committed
check BULLET_VER variable is not emply.
1 parent 2a89385 commit 9a6aeab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

irteus/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ INSTALLOBJDIR=$(IRTEUSDIR)/$(ARCHDIR)/obj
3131
INSTALLLIBDIR=$(IRTEUSDIR)/$(ARCHDIR)/lib
3232

3333
# check bullet version
34-
BULLET_VER_MAJOR:=$(shell pkg-config bullet --modversion | cut -f1 -d.)
35-
BULLET_VER_MINOR:=$(shell pkg-config bullet --modversion | cut -f2 -d.)
36-
BULLET_GE_2_83=$(shell [ $(BULLET_VER_MAJOR) -gt 2 -o \( $(BULLET_VER_MAJOR) -eq 2 -a $(BULLET_VER_MINOR) -ge 83 \) ] && echo true)
34+
BULLET_VER_MAJOR:=$(shell pkg-config bullet --modversion --silence-errors | cut -f1 -d.)
35+
BULLET_VER_MINOR:=$(shell pkg-config bullet --modversion --silence-errors | cut -f2 -d.)
36+
ifneq ($(and $(BULLET_VER_MAJOR),$(BULLET_VER_MINOR)),)
37+
BULLET_GE_2_83=$(shell [ $(BULLET_VER_MAJOR) -gt 2 -o \( $(BULLET_VER_MAJOR) -eq 2 -a $(BULLET_VER_MINOR) -ge 83 \) ] && echo true)
38+
endif
3739
ifeq ($(BULLET_GE_2_83), true)
3840
HAVE_BULLET=1
3941
else

0 commit comments

Comments
 (0)