Fixing cmake warnings.