donate-cpu.py: Improved detection of wxWidgets code in scanPackage. (#1580)

This commit is contained in:
orbitcowboy 2019-01-09 15:59:48 +01:00 committed by GitHub
parent 44135ef926
commit 126bd2bb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ def scanPackage(workPath, cppcheck, jobs):
print('Analyze..')
os.chdir(workPath)
libraries = ' --library=posix'
if hasInclude('temp', '<wx/string.h>'):
if hasInclude('temp', '<wx/') or hasInclude('temp', '"wx/'):
libraries += ' --library=wxwidgets'
if hasInclude('temp', '<QString>'):
libraries += ' --library=qt'