Patch by Pino Toscano. Reported in http://bugs.debian.org/835665
Hi! I'm the original author of this patch.
What would you suggest regarding the cmake syntax? It looks readable to me already, but of course I'm happy to improve it to make it even more readable.