Assign python related variables before using them.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user