There is no value for ${PROJECT_NAME} in a ctest -S script unless you have set it priot to the -- snip -- that you sent... So you are setting CTEST_PROJECT_NAME to nothing.<br><br>And, since this is a new-style -S script, you should try using:<br>
SET(ENV{CC} &quot;cc&quot;)<br>SET(ENV{CXX} &quot;CC&quot;)<br><br>instead of setting the old-style CTEST_ENVIRONMENT variable...<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 4:47 AM,  <span dir="ltr">&lt;<a href="mailto:th.tom@gmx.de">th.tom@gmx.de</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;">Hi again,<br>
<br>
I am doing something wrong here, but what:<br>
<br>
-- snip script.cmake ---<br>
  SET ( CTEST_PROJECT_NAME ${PROJECT_NAME} )<br>
  SET ( CTEST_BINARY_DIRECTORY ${SOURCE_DIR}/build )<br>
  SET ( CTEST_SOURCE_DIRECTORY ${SOURCE_DIR} )<br>
<br>
  SET ( CTEST_CMAKE_GENERATOR &quot;Unix Makefiles&quot; )<br>
<br>
  SET ( CTEST_ENVIRONMENT &quot;CC=cc&quot; &quot;CXX=CC&quot; )<br>
  SET ( CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE )<br>
<br>
  CTEST_START     ( Experimental )<br>
  CTEST_CONFIGURE ( BUILD &quot;${CTEST_BINARY_DIRECTORY}&quot; RETURN_VALUE res )<br>
  CTEST_BUILD     ( BUILD &quot;${CTEST_BINARY_DIRECTORY}&quot; RETURN_VALUE res )<br>
  CTEST_SUBMIT    ( RETURN_VALUE res )<br>
------------------------<br>
<br>
The environment variables are ignored, and gcc is used instead of cc.<br>
Additional the binary directory is not cleaned.<br>
<br>
Is there something that I have to do extra?<br>
<br>
-tom<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>