Skip to content

Commit

Permalink
Filter out -std=c++14 flag when building against libosrm, fixes #311.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Apr 17, 2020
1 parent 625eebf commit c45754e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ SRC = $(wildcard *.cpp)\
# Checking for libosrm
ifeq ($(shell pkg-config --exists libosrm && echo 1),1)
LDLIBS += $(shell pkg-config --libs libosrm) -lboost_filesystem -lboost_iostreams -lboost_thread -lrt -ltbb
CXXFLAGS += $(shell pkg-config --cflags libosrm) -D USE_LIBOSRM=true
LIBOSRMFLAGS = $(shell pkg-config --cflags libosrm)
CXXFLAGS += $(filter-out -std=c++14, $(LIBOSRMFLAGS)) -D USE_LIBOSRM=true
else
SRC := $(filter-out ./routing/libosrm_wrapper.cpp, $(SRC))
endif
Expand Down

0 comments on commit c45754e

Please sign in to comment.