Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmake install path issue #6776

Closed
wants to merge 1 commit into from
Closed

Fix cmake install path issue #6776

wants to merge 1 commit into from

Conversation

gzzi
Copy link

@gzzi gzzi commented Sep 6, 2024

Hi,

I compile using cmake:

cmake -DHAVE_RULES=ON -DUSE_MATCHCOMPILER=On ..

I see on the log:

-- FILESDIR =              OFF
-- FILESDIR_DEF =          /usr/local/share/Cppcheck

and when it install I got:

-- Install configuration: "Debug"
-- Installing: /usr/local/bin/cppcheck
-- Installing: /usr/local/OFF/addons/__init__.py
-- Installing: /usr/local/OFF/addons/cppcheck.py
...
-- Installing: /usr/local/OFF/cfg/avr.cfg
-- Installing: /usr/local/OFF/cfg/bento4.cfg
...
-- Installing: /usr/local/OFF/platforms/aix_ppc64.xml
-- Installing: /usr/local/OFF/platforms/arm32-wchar_t2.xml
-- Installing: /usr/local/OFF/platforms/arm32-wchar_t4.xml

and of course when running cppcheck I got:

Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled with FILESDIR set to "/usr/local/share/Cppcheck" and will therefore search for std.cfg in /usr/local/share/Cppcheck/cfg.

@firewave
Copy link
Collaborator

firewave commented Sep 6, 2024

Thanks for your contribution.

This has already been submitted as #6764. I hope to get around to this over the weekend.

@firewave
Copy link
Collaborator

firewave commented Sep 7, 2024

Closing as the other ticket has been merged.

@firewave firewave closed this Sep 7, 2024
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