Setting PATH in Makefile executed by eclipse

I have a Makefile that works fine with bash shell, but won't run from Eclipse. This is because the path I am setting in my .bash_profile is not being used.

What's the best way to do this? Is there somewhere else that I can put a path to make sure it is invoked in non-interactive shells (which is what I'm guessing is how make make eclipse works)?

+2


a source to share


1 answer


If you are using CDT, you can set environment variables in Project-> Properties-> C / C ++ Build-> Environment. But I'm not sure if this will achieve the desired effect.



You can also (if using CDT and an external builder) install make /bin/bash make

, which should choose your path.

+1


a source







All Articles