I discoverd this when trying to run my Cppcheck targets via visual code. This forces me to use the CmakePresets.json architecture field. This doesn't accept Win32. Only win32 is allowed.
After this, the resulting project is nearly identical, but Cppcheck doesn't find any sources anymore.
win32 is also accepted as a parameter for cmake -A. After configuring with -A win32 instead of -A Win32, the cppcheck targets no longer work for me because Cppcheck doesn't find any sources in the projects anymore.
I think this is something missing in Cppcheck.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
would it be possible to provide a small minimal example project?
it's not really clear to me if you integrated cppcheck into cmake directly or if you export a compile commands or if you generate some project file with cmake and use --project..
I have no idea when this can be fixed. Do you think you could fix and open a github pull request?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I discoverd this when trying to run my Cppcheck targets via visual code. This forces me to use the CmakePresets.json architecture field. This doesn't accept Win32. Only win32 is allowed.
After this, the resulting project is nearly identical, but Cppcheck doesn't find any sources anymore.
win32 is also accepted as a parameter for cmake -A. After configuring with -A win32 instead of -A Win32, the cppcheck targets no longer work for me because Cppcheck doesn't find any sources in the projects anymore.
I think this is something missing in Cppcheck.
would it be possible to provide a small minimal example project?
it's not really clear to me if you integrated cppcheck into cmake directly or if you export a compile commands or if you generate some project file with cmake and use
--project
..I have no idea when this can be fixed. Do you think you could fix and open a github pull request?
Hi,
Yes, I will provide an example in the coming days on a github repo. Please check here again soon for the link.
I edited the source code of Cppcheck already and got it working again. I'll look into creating a pull request.
Regards
Last edit: Emiel Estiévenart 2025-01-17