OK, another attempt at this as it fails on non-Linux non-Python 3.8.

This commit is contained in:
Dave Page 2020-04-29 14:29:47 +01:00
parent f7ef86dced
commit 505956d1fa

View File

@ -75,7 +75,7 @@ else {
QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes)
QMAKE_LFLAGS += $$system($$PYTHON_CONFIG --ldflags)
LIBS += $$system($$PYTHON_CONFIG --libs --embed || $$PYTHON_CONFIG --libs)
LIBS += $$system($$PYTHON_CONFIG --libs --embed 2> /dev/null || $$PYTHON_CONFIG --libs)
contains( LIBS, -lpython2.* ) {
DEFINES += PYTHON2