Env var for selecting libpython version
This commit is contained in:
@@ -33,7 +33,12 @@ unix:!macx {
|
||||
message(Linker options QMAKE_RPATHDIR is $${QMAKE_RPATHDIR})
|
||||
|
||||
CONFIG(python){
|
||||
LIBS += -L$${python_home} -lpython3.5m
|
||||
libpython_vers = $$(LIBPYTHON_VERSION)
|
||||
isEmpty(libpython_vers) {
|
||||
libpython_vers = 3.5m
|
||||
}
|
||||
message(Lib Python version is $${libpython_vers})
|
||||
LIBS += -L$${python_home} -lpython$${libpython_vers}
|
||||
INCLUDEPATH += $${python_headers}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user