7 Replies Latest reply on Feb 1, 2017 12:04 AM by jacob_1632926

    Define from environment variable

    jacob_1632926

      Hello,

         

      I'd like to set a #define in my code (or most likely -D to the compiler) based on an environment variable. It will be used by our continuous integration system to set version that should be compiled into the product.

         

      Is there any way to do this? I'm using PSoC Creator 4.0 together with a PSoC 4 (4200 series).

         

      Thanks, Jacob