We used to copy all headers everytime to sysroot which caused rebuild of the whole os. Now we use the cmake command 'copy_directory_if_different' which seemed to fix this issue :)