Crap! It seems I finally found the exactly line that triggers the cmake bug! =)
Great!
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...
You and Slavek seem to be on similar paths. He just attached a patch to bug report 1759. I'm in the middle of testing his patch now. I only just started but with Slavek's patch tdelibs finally finished the configuration without the infamous LINK_ONLY error and is compiling with 2.8.12. I still need to test with 2.8.12.1 and then backwards compatibility with 2.8.8.
Darrell