summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-04 15:25:40 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-04 15:25:40 +0100
commit5fb5b34f5c2f5d0a3210708c04779367b1072c32 (patch)
tree4c79a1cbb4c0f3b35db12b43c9262d7baf2a70be /common.mk
parent14624e39aff9239d5f016af1c0553483c856555b (diff)
Adjust to new lib API
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 5770d7d..cb4a426 100644
--- a/common.mk
+++ b/common.mk
@@ -97,6 +97,9 @@ LIBS+= \
CXXTYPE=g++
endif
+CXXFLAGS+=$(shell pkg-config --cflags fmt)
+LIBS+=$(shell pkg-config --libs fmt)
+
SRC_ROOT=$(shell echo $(MAKEFILE_LIST) | tr " " "\n" | grep common.mk | sed -e 's/\([^ ]*\)common.mk/\1/g')
VERSION=$(shell dpkg-parsechangelog --show-field Version --file $(SRC_ROOT)/debian/changelog)
CXXFLAGS+=-DVERSION=\"$(VERSION)\"