The job of replacing directories with symlinks apparently is a tough one. Create a symlink manually in the postinst of the affected (!cmake-data) packages.