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

Witold E Wolski wewolski at gmail.com
Fri Dec 14 04:40:22 EST 2012


Found a solution:
removing NAME from

add_test(NAME hdf5mstest

helps. No errors with  cmake  2.6
regards

On 14 December 2012 10:15, Witold E Wolski <wewolski at gmail.com> wrote:

> 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
>



-- 
Witold Eryk Wolski

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


More information about the CMake mailing list