Crap! It seems I finally found the exactly line that triggers the cmake
bug! =)
Try this...
PS: I'm not sure if it will break something in other nm-related modules...
But it should repair the build of the tdelibs with the 2.8.12.
PPS: Also there could be some other similar issues in other modules...