<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=097405218-15102009><FONT face=Arial
color=#0000ff size=2>That did the trick. Thank you
both!</FONT></SPAN></DIV>
<P><FONT size=2>--<BR>Shane Dixon<BR>Linux Engineer<BR>Atmel
Corporation<BR><BR></FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> David Cole [mailto:david.cole@kitware.com]
<BR><B>Sent:</B> Thursday, October 15, 2009 12:22 PM<BR><B>To:</B> Dixon,
Shane<BR><B>Cc:</B> cmake@cmake.org<BR><B>Subject:</B> Re: [CMake] MSVC Console
Environment in CTest<BR></FONT><BR></DIV>
<DIV></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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></BODY></HTML>