```ruby
cmake_args = std_cmake_args
cmake_args << "=DDEBUG=OFF" if build.without? "debug"
cmake_args << "=DPROFILE=OFF" if build.without? "profile"
system "cmake", ".", *cmake_args
system "make", "install"
```