[CMake] Turning a string into a list.

Josef Karthauser joe.karthauser at geomerics.com
Thu Oct 11 08:42:53 EDT 2007


Does anyone know how to turn a string, such as "one;two;three" into a
list, so that I can enumerate the elements in a list?

I want something like:

	SET(Q "one;two;three")
	FOREACH(I TO_LIST(Q))
		...
	ENDFOREACH().

Thanks,
Joe


More information about the CMake mailing list