NAME and COMMAND are keywords that were added at the same time in one of the early CMake 2.8 versions...<div><br></div><div>WORKING_DIRECTORY was first added as an argument to add_test in CMake 2.8.3.</div><div><br></div><div>
You should be able to run the latest version of CMake: just download it from <a href="http://cmake.org/cmake/resources/software.html">http://cmake.org/cmake/resources/software.html</a> -- CMake 2.6.4 may be sufficient for your needs, but it is quite old (from May, 2009) and there have been many improvements to it since then.</div>
<div><br></div><div><br></div><div>Cheers,</div><div>David</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 4:40 AM, Witold E Wolski <span dir="ltr"><<a href="mailto:wewolski@gmail.com" target="_blank">wewolski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Found a solution: <br>removing NAME from<br><br>add_test(NAME hdf5mstest<br><br>helps. No errors with cmake 2.6<br>regards<div class="HOEnZb">
<div class="h5"><br><br><div class="gmail_quote">On 14 December 2012 10:15, Witold E Wolski <span dir="ltr"><<a href="mailto:wewolski@gmail.com" target="_blank">wewolski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to build a project on a 'custom' linux machine.<br><br>When running cmake (cmake version 2.6-patch 4)<br>
thats the error I am getting.<br><br clear="all"> (set_tests_properties):<br> set_tests_properties Can not find test to add properties to:<br>
<br>The relevant section in the CMakeLists.txt file looks like this:<br><br>ENABLE_TESTING()<br>add_test(NAME hdf5mstest<br>WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}<br>COMMAND ${BinOut}/hdf5mstest )<br>set_tests_properties(hdf5mstest PROPERTIES ENVIRONMENT "${LD_VARNAME}=${LD_PATH}")<br>
<br><br>Interestingly, on my machine with cmake version 2.8.7 I do not have such errors.<br><br>Is it due to some cmake 2.8 syntax not valid in 2.6 ? If so how can I adjust my CMakeLists.txt file to be compatible with 2.6?<br>
<br>regards<span><font color="#888888"><br>Witold<br><br><br><br>-- <br>Witold Eryk Wolski<br><br>Triemlistrasse 155<br>8047 Zuerich<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Witold Eryk Wolski<br><br>Triemlistrasse 155<br>8047 Zuerich<br>
</div></div><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>