Cleaned up the cmakeFlags and took out some unnecessary stuff