Assign python related variables before using them.

This commit is contained in:
Éder F. Zulian
2017-02-15 17:57:30 +01:00
parent cc8c378d0a
commit c0838e399e

View File

@@ -17,8 +17,21 @@ unix:!macx {
QMAKE_CXXFLAGS += -Xlinker -export-dynamic
QMAKE_RPATHDIR += $${libqwt_home}
message(Linker options QMAKE_RPATHDIR is $${QMAKE_RPATHDIR})
# Python library and header files
python_home = $$(PYTHON_HOME)
isEmpty(python_home) {
python_home = /opt/python/lib
}
message(Python home is $${python_home})
CONFIG(python) {
python_headers = $$(PYTHON_HEADERS)
isEmpty(python_headers) {
python_headers = /opt/python/include/python3.5m
}
message(Getting python headers from $${python_headers})
CONFIG(python){
LIBS += -L$${python_home} -lpython3.5m
INCLUDEPATH += $${python_headers}
}
@@ -55,19 +68,6 @@ CONFIG(qwt){
INCLUDEPATH += $${libqwt_headers}
}
# Python library and header files
python_home = $$(PYTHON_HOME)
isEmpty(python_home) {
python_home = /opt/python/lib
}
message(Python home is $${python_home})
python_headers = $$(PYTHON_HEADERS)
isEmpty(python_headers) {
python_headers = /opt/python/include/python3.5m
}
message(Getting python headers from $${python_headers})
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = traceAnalyzer