<div class="gmail_quote">On Fri, Mar 6, 2009 at 9:35 AM, ankit jain <span dir="ltr">&lt;<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>&gt;</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;">
<br><br>
<div class="gmail_quote"><div class="im">2009/2/17 Philip Lowman <span dir="ltr">&lt;<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>&gt;</span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div class="im">
<div class="gmail_quote">
<div>
<div></div>
<div>On Mon, Feb 16, 2009 at 11:03 PM, ankit jain <span dir="ltr">&lt;<a href="mailto:ankitguddu@gmail.com" target="_blank">ankitguddu@gmail.com</a>&gt;</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>
<div></div>
<div>
<div class="gmail_quote"><div class="gmail_quote"><div>Iam using cmake 2.6</div></div></div></div></div></blockquote></div></div>
<div><br>This should work on the latest CMake 2.6.3 RC, provided you use &quot;make test&quot;.<br><br>set_tests_properties(foo PROPERTIES ENVIRONMENT foo=bar)<br><br></div></div></div>      I have run this but not able to set the environment variable.</blockquote>


<div>         I am using cmake-2.6.3-RC-14-Linux-i386. </div>
<div>     Actually i have a test t1. i want to set and unset LD_LIBRARY_PATH acc. while adding  test t1 so that on running ctest it will use that value of LD_LIBRARY_PATH rather than using the older set value.</div>
<div> </div>
<div>This iam not able to achieve that.</div>
<div> </div>
<div>Guide where iam wrong and what need to be done.</div></div></blockquote><div><br>I was mistaken about the feature existing in CMake 2.6.3.  Bill corrected me later in the thread.  You will need to use CMake CVS to take advantage of the ENVIRONMENT test property.  It is quite easy to build CMake CVS, just like any other CMake project.  I hope it&#39;s acceptable for you.  The only workaround I can think of is to set LD_LIBRARY_PATH manually before your special test.  If it were called my_special_test you might run the following commands, for example:<br>
<br>ctest --exclude-regex my_special_test<br>export LD_LIBRARY_PATH=/my/new/path<br>ctest --tests-regex my_special_test<br><br>Also, I assume you&#39;re familiar with how CMake uses RPATH so you don&#39;t usually need to set LD_LIBRARY_PATH in your build tree...?<br>
</div></div><br clear="all"><br>-- <br>Philip Lowman<br>