Use system environment variable as macro for build

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Use system environment variable as macro for build

      Hi,

      I would like to build my project both on windows and linux. This works well with exceptionof the SDK path. Currently I have defined a project macro SDK_ROOT that points to the installes SDK version. On my windwos-PC this points to C:\nRF... on linux to /home/...
      Is it possible to use a system environment variable for this instead of this project macro? I didn't find anything about this in the documentation, but maybe there is a solution.

      Thanks and best regards
    • Hello,

      yes, I know this, But I want to use a windows/linux system variable. Currently I have a macro defined:
      SDK_ROOT=C:\nRF5_SDK_15.3.0_59ac345
      so I can include files from e.g.
      $(SDK_ROOT)/components/toolchain/cmsis/include

      But I don't want to set this macro inside the solution but want to use a system variable. The reason is that I build the project both on windows and linux and keep the same projekt file for the solution.