Do Search Engines Care If You Use Drupal?

How much do Content Management Systems (CMS), like WordPress, Drupal, Joomla!, play a part in search engine optimization (SEO)? 

Certainly bad site design (not clean urls, bad content, poor use of domain names, etc) in a CMS like Drupal is going to affect SEO (great tools used in a bad way idea). But do content management systems themselves lend to better SEO over others, if all the other good practices are done? And, how would