Implemented @proteneer's suggestions for generalizing OS X CMakeCache.txt settings.