After reading the link I wrote thie patch. cp it from the beginning with ---CMakeLists.tx Name this file patch-CMakeLists_txt and cp it to the science/libkml/files directory.