Skip to content

Fix addons for installed cppcheck - #2873

Merged
danmar merged 1 commit into
cppcheck-opensource:mainfrom
buscher:fix_installed_addons
Nov 1, 2020
Merged

Fix addons for installed cppcheck#2873
danmar merged 1 commit into
cppcheck-opensource:mainfrom
buscher:fix_installed_addons

Conversation

@buscher

@buscher buscher commented Nov 1, 2020

Copy link
Copy Markdown
Contributor
  • getAddonFilePath is used with getDataDir, this works fine
    for a local build cppcheck, but not for a system installed one.
    As getDataDir reports the location relative to the executable (/usr/bin/)
    and the addons are localed in FILESDIR (/usr/share/cppcheck).
    Extend the search path by FILESDIR/addons to also make it work for
    the installed cppcheck version.

- getAddonFilePath is used with getDataDir, this works fine
  for a local build cppcheck, but not for a system installed one.
  As getDataDir reports the location relative to the executable (/usr/bin/)
  and the addons are localed in FILESDIR (/usr/share/cppcheck).
  Extend the search path by FILESDIR/addons to also make it work for
  the installed cppcheck version.
@buscher
buscher force-pushed the fix_installed_addons branch from 2966ff7 to b0b4bfc Compare November 1, 2020 13:58
@danmar
danmar merged commit db3d9a7 into cppcheck-opensource:main Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants