Adds cmake option for syncing log