ctest_configure requires a BUILD argument naming the binary directory...<div><br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 1:15 PM, Zou, Di (Cont, ARL/CISD) <span dir="ltr"><<a href="mailto:di.zou@us.army.mil">di.zou@us.army.mil</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I replaced:<br>
<div class="im">ctest_configure(OPTIONS "-C ~/NetDMF_CMake_Config")<br>
</div>with:<br>
ctest_configure(OPTIONS "-C $ENV{HOME}/NetDMF_CMake_Config")<br>
<br>
I get the same error:<br>
Configure Command:"/usr/cta/CSE/Release/cmake-2.8.0.5/bin/cmake" "-C /home/dizou/NetDMF_CMake_Config" "-GUnix Makefiles" "/home/dizou/NetDMF_KD"<br>
<div class="im"><br>
Configure Return Value:1<br>
<br>
Configure Output:<br>
<br>
</div>loading initial cache file /home/dizou/NetDMF_CMake_Config<br>
CMake Error: Error processing file: /home/dizou/NetDMF_CMake_Config<br>
<br>
The configure command does not work from the terminal window either.<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: Tyler Roscoe [mailto:<a href="mailto:tyler@cryptio.net">tyler@cryptio.net</a>]<br>
Sent: Mon 4/12/2010 12:26 PM<br>
To: Zou, Di (Cont, ARL/CISD)<br>
Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] error using ctest_configure in a ctest script<br>
<br>
On Mon, Apr 12, 2010 at 12:11:54PM -0400, Zou, Di (Cont, ARL/CISD) wrote:<br>
> I have this line in my ctest script:<br>
> ctest_configure(OPTIONS "-C ~/NetDMF_CMake_Config")<br>
><br>
> At the dashboard, this is the error I get:<br>
> Build Name:build-linux-c++<br>
><br>
> Configure Command:"/usr/cta/CSE/Release/cmake-2.8.0.5/bin/cmake" "-C ~/NetDMF_CMake_Config" "-GUnix Makefiles" "~/NetDMF_KD"<br>
><br>
> Configure Return Value:1<br>
><br>
> Configure Output:<br>
><br>
> loading initial cache file ~/NetDMF_CMake_Config<br>
> CMake Error: Error processing file: ~/NetDMF_CMake_Config<br>
<br>
'~' meaning your home dir is evaluated by your shell. Most non-shell<br>
tools don't understand what it means.<br>
<br>
Try using an absolute path (/home/di.zou) or the $HOME environment<br>
variable ($ENV{HOME} in CTest land).<br>
<br>
tyler<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>
</div></div></blockquote></div><br></div>