<div class="gmail_quote">On Mon, Feb 16, 2009 at 7:46 AM, ankit jain <span dir="ltr"><<a href="mailto:ankitguddu@gmail.com" target="_blank">ankitguddu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi all,</div>
<div> </div>
<div>I want to set an enviromnet varibale but not able to do it. </div>
<div>Currently iam using the command:</div>
<div>SET( ENV{varname} value )</div>
<div> </div>
<div>But it is not working.</div>
<div>Can anybody guide me how to do it by giving an example.</div></blockquote><div><br>Are you trying to set an environment variable that can be used during build time? This isn't possible.<br><a href="http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_get_or_set_environment_variables.3F" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_get_or_set_environment_variables.3F</a><br>
<br>Could you elaborate on when you need the environment variable?<br></div></div><br>-- <br>Philip Lowman<br>