Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325307

Summary: Eclipse unable to recognize a user-defined build environment variable
Product: [Tools] CDT Reporter: Ravindranath M <rv_nath>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
shows the build setting created by me.
none
shows the compiler output, indicating non-recognition of the build variable none

Description Ravindranath M CLA 2010-09-15 02:02:42 EDT
Build Identifier: Version: 3.5.2 Build id: M20100211-1343

the CDT builder is not able to recognize the build variables. I create a build variable "PROJECT_BUILD" and using the same in my make file.

The same effect, even if i set the variable using 
   C/C++ Build / Environment.

It works only if the variable is set within my terminal shell and launch the eclipse.

Please help.

Reproducible: Always

Steps to Reproduce:
1. I have created a makefile based C/C++ project.
2. In the properties of the project, I created a new build variable (from "C/C++ Build->Build Variables") called "PROJECT_BUILD", of type String with a value "/home/rvnath/workspace/CPLT_/build.
3. I am referencing this variable in my Makefile as below...
   include $(PROJECT_BUILD)/path.mk
4. But when the build starts, the variable is found to be empty, so it gives me a compiler error saying /path.mk is not found.

5. It only works, when i explicitly export this variable in my terminal and then launch Eclipse from that terminal.

Please suggest, if I am missing something here..
Comment 1 Ravindranath M CLA 2010-09-15 02:08:45 EDT
Created attachment 178898 [details]
shows the build setting created by me.
Comment 2 Ravindranath M CLA 2010-09-15 02:09:43 EDT
Created attachment 178899 [details]
shows the compiler output, indicating non-recognition of the build variable