Menu

Use environemnt variables in file Paths?

Sev Miller
2022-07-01
2022-07-05
  • Sev Miller

    Sev Miller - 2022-07-01

    I am on Windows and I am Using the GUI Tool. I can create an project and add Include Paths for additional header files. I can use relative and absolute paths. However I would like to use Windows Environment Variables to add paths:
    E.g.: I have a Windows Environenment Variable MY_LIB_PATH with the value of "C:\myLib\", then I would like to use a Include Path in Cppcheck like "%MY_LIB_PATH%\include" to point to the header files of this library. THe reason is, that I want to check-in the cppcheck configuration file into our SCM, so that my coworkes can use the config as well. However, everyone hat that Library installed at another Path, so using environment Variables would be very handy. Is there any solution to that problem?

    EDIT: Seems I accidently posted this into the Developement topic instead ov the general Topic. I can not change this or delete this Post, so i let it remain here.

     

    Last edit: Sev Miller 2022-07-01
  • Daniel Marjamäki

    I think this sounds very reasonable.

    I have created: https://trac.cppcheck.net/ticket/11170

    I cannot say when this will be fixed. Feel free to look into it and create a pull request if you have some time.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.