math/R: Add cmake dependency
Some R packages such as nloptr require CMake to build.
PR: 261835
Approved by: jrm (maintainer)