Try SEPARATE_ARGUMENTS.SET(Q "one;two;three") SEPARATE_ARGUMENTS(Q) FOREACH(I ${Q}) MESSAGE("I = ${I}") ENDFOREACH(I)
SEPARATE_ARGUMENTS do the opposite, it converts a string to a list by replacing spaces with ";" In the case of Josef, nothing needs to be done since its string has already the format of a list.
--Sylvain _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake