Makefile: Enable overriding pkg-config
(#107)
Sometimes there's a need to precise which `pkg-config` is to be used. Now `pkg-config`'s name or path can be overridden with `PKG_CONFIG`. Fixes #106.
This commit is contained in:
parent
cd3ef72166
commit
a36bf2e6bd
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,4 +1,5 @@
|
|||
CAPNP_CXX_FLAGS=$(shell pkg-config capnp --cflags --libs)
|
||||
PKG_CONFIG ?= pkg-config
|
||||
CAPNP_CXX_FLAGS=$(shell $(PKG_CONFIG) capnp --cflags --libs)
|
||||
|
||||
ifeq ($(CAPNP_CXX_FLAGS),)
|
||||
$(warning "Warning: pkg-config failed to find compilation configuration for capnp.")
|
||||
|
|
Loading…
Reference in a new issue