Added debug setting to cmake