[CMake] ctest-2.6.4 and ctest 2.6.8 - LIST(FIND ...) always returns -1
Clemens Arth
clemens.arth at gmx.at
Fri Dec 11 06:06:25 EST 2009
Hi,
probably I did something wrong, but with both ctest 2.6.4 and 2.8.0 the following is not working:
SET(MYLIST foo bar)
SET(ITEM2FIND foo)
LIST(FIND "${MYLIST}" "${ITEM2FIND}" INDEX)
MESSAGE(FATAL_ERROR "Index of \"${ITEM2FIND}\" in list \"${MYLIST}\" is ${INDEX}")
always returns
"Index of "foo" in list "foo,bar" is -1"
Can someone reproduce this error (or tell me what I'm doing wrong?)
Regards...
Clemens
More information about the CMake
mailing list