[CMake] Can not find test to add properties to:

Witold E Wolski wewolski at gmail.com
Fri Dec 14 04:15:59 EST 2012


I am trying to build a project on a 'custom' linux machine.

When running cmake (cmake version 2.6-patch 4)
thats the error I am getting.

 (set_tests_properties):
  set_tests_properties Can not find test to add properties to:

The relevant section in the CMakeLists.txt file looks like this:

ENABLE_TESTING()
add_test(NAME hdf5mstest
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${BinOut}/hdf5mstest )
set_tests_properties(hdf5mstest PROPERTIES ENVIRONMENT
"${LD_VARNAME}=${LD_PATH}")


Interestingly, on my machine with cmake version 2.8.7 I do not have such
errors.

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?

regards
Witold



-- 
Witold Eryk Wolski

Triemlistrasse 155
8047 Zuerich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121214/df93fbc0/attachment.htm>


More information about the CMake mailing list