```ruby
if build.cxx11?
  depends_on 'boost' => 'c++11'
else
  depends_on 'boost'
end
```