mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Detect the presence of the missing Marble header by compiling it
Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6bea555c19
commit
29b99d4e1a
1 changed files with 3 additions and 4 deletions
|
@ -146,10 +146,9 @@ ZIPFLAGS = $(strip $(shell $(PKGCONFIG) --cflags libzip 2> /dev/null))
|
||||||
LIBSQLITE3 = $(shell $(PKGCONFIG) --libs sqlite3 2> /dev/null)
|
LIBSQLITE3 = $(shell $(PKGCONFIG) --libs sqlite3 2> /dev/null)
|
||||||
SQLITE3FLAGS = $(strip $(shell $(PKGCONFIG) --cflags sqlite3))
|
SQLITE3FLAGS = $(strip $(shell $(PKGCONFIG) --cflags sqlite3))
|
||||||
|
|
||||||
UNAME_A = $(shell uname -a)
|
# Before Marble 4.9, the GeoDataTreeModel.h header wasn't installed
|
||||||
ifneq (,$(filter $(UNAME_A), Debian))
|
# Check if it's present by trying to compile
|
||||||
MARBLEFLAGS = -DINCOMPLETE_MARBLE
|
MARBLEFLAGS = $(shell $(CXX) $(QTCXXFLAGS) -E -include marble/GeoDataTreeModel.h -xc++ /dev/null > /dev/null 2>&1 || echo " -DINCOMPLETE_MARBLE")
|
||||||
endif
|
|
||||||
|
|
||||||
# Write the configure file
|
# Write the configure file
|
||||||
all: configure
|
all: configure
|
||||||
|
|
Loading…
Add table
Reference in a new issue