Cmake: top level cmake minor code cleanup.