Have the scheduled task call a batch file of your creation (driver.bat)<div><br></div><div>Have driver.bat call vcvars32.bat and then ctest -S your script like this:</div><div><br></div><div>startlocal</div><div>call "C:\Program Files\full\path\to\vcvars32.bat"</div>
<div>"C:\Program Files\CMake 2.6\bin\ctest.exe" -S "C:\full\path\to\script.cmake"<br>endlocal</div><div><br></div><div>startlocal/endlocal are used to push/pop environment changes so you can isolate env changes...</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Thu, Oct 15, 2009 at 1:45 PM, Dixon, Shane <span dir="ltr"><<a href="mailto:Shane.Dixon@atmel.com">Shane.Dixon@atmel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have a CTest script that I'd like to run nightly on a Windows XP machine. If I run it from the "Visual Studio 2008 Command Prompt", it works fine. If I run from a "Scheduled Task", it balks and says it can't find "cl", so obviously the CTEST_ENVIRONMENT is wrong.<br>
<br>
Before I start disecting these vcvars32.bat script that sets all the environment, has someone else already converted that .bat script that sets the environment into something that I can use in Ctest? Is there a better way to setup the Scheduled Task so that I don't have to set up the environment in the first place?<br>
<br>
<br>
--<br>
Shane Dixon<br>
Linux Engineer<br>
Atmel Corporation<br>
<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></div>