Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting dynamically build environment
Setting dynamically build environment [message #901730] Tue, 14 August 2012 07:39 Go to next message
Eclipse UserFriend
Hi all,

My makefile needs some environment variables which are defined by bash script:
. set_variables.sh  //script setting variables
make //makefile using variables setting above


I try to reproduce this process on Eclipse CDT using external tools to execute "set_variables.sh" before build in project build properties. But each time, i lose variables setting in script when make is carried out. I know we can set build environment variable statically but i can't use it.

So, is there a way to set dynamically build environment?
Re: Setting dynamically build environment [message #901928 is a reply to message #901730] Wed, 15 August 2012 02:45 Go to previous messageGo to next message
Eclipse UserFriend
External tools have their own "universe" of environment variables and do not share it with the build command. You can change your build command to
. set_variables.sh && make
Re: Setting dynamically build environment [message #903911 is a reply to message #901928] Mon, 27 August 2012 04:56 Go to previous message
Eclipse UserFriend
Unfortunately, nothing occurs. The set_variable.sh is not executed.
Previous Topic:Selecting the application to run according to the current active build configuration
Next Topic:Can't start Indigo
Goto Forum:
  


Current Time: Tue May 20 00:27:18 EDT 2025

Powered by FUDForum. Page generated in 0.02415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top