Make sure you have quit the visual studio instance in that build directory - VS assumes that only it modifies the .vcproj.user files, so it does not detect changes and will overwrite a modified file. At least with 2.8.0, this works fine when visual studio is closed.<br>
<br>Ryan<br><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 4:59 AM, Surya Kiran Gullapalli <span dir="ltr"><<a href="mailto:suryakiran.gullapalli@gmail.com">suryakiran.gullapalli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello all,<div>I'm facing a weird problem with CONFIGURE_FILE on windows with CMake-2.8.1 (RC3)</div>
<div>I've followed the steps outlined <a href="http://stackoverflow.com/questions/1005901/how-to-set-path-environment-variable-using-cmake-and-visual-studio-to-run-test/1151593" target="_blank">here</a> to set PATH environment variable for an executable.</div>
<div><br></div><div>The problem is, when I click configure, .user file is created fine with out any issues. But when i click "Generate", the created file is overwritten by the one generated by VS.</div><div><br>
</div><div>Lets say I've this line in The template file <i>Environment="PATH=@PATH_ENV_VARIABLE@",</i></div><div>when i click <i>Configure</i>, the PATH_ENV_VARIABLE is properly substituted. But once I <i>Generate </i> the solution, the above said line in .user file becomes <i>Environment=""</i>, which is default.</div>
<div><br></div><div>What is going wrong here ?</div><div><br></div><div>Thanks,</div><div>Surya</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>
Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br><a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>