qt-defs.mk: Make QT_VERSION dymanically assigned, based on what's rpm-installed

This commit is contained in:
Jan Lindemann 2010-12-13 17:26:52 +00:00 committed by Jan Lindemann
commit 77ed302062

View file

@ -2,7 +2,7 @@ ifeq ($(USE_QT),true)
USE_X = true
CPPFLAGS += -DQT_THREAD_SUPPORT
QT_VERSION ?= 4.3.0
QT_VERSION ?= $(shell rpm -q --queryformat='%{VERSION}' --whatprovides qt)
QT_MAJOR_VERSION ?= $(shell echo $(QT_VERSION) | cut -d\. -f1)
ifeq ($(QT_MAJOR_VERSION),2)