Alexander Neundorf escreveu:
Yes, you can get map-like behaviour by using just variables:
SET(MY_MAP_${KEY} myValue)
That's fine if ${KEY} doesn't have spaces nor characters that aren't
allowed in variable names. As I'm using a string containing compiler
flags and stuff, this solution isn't possible. A workaround would be
computing a hash from the string and using it as a key, but once again,
it'd be a pain in the *** to do it in cmake script.
Regards,
rod
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake