Neal Gompa wrote:
You can also do "%cmake -B %{_vpath_builddir}" and that
will work on
old and new distro releases alike.
Not on really old distros, because it requires CMake 3.13 (2018-11-20):
https://cgold.readthedocs.io/en/latest/glossary/-B.html
(The undocumented variant "%cmake -H. -B%{_vpath_builddir}" should work with
some older versions of CMake, not sure how far back, but it is not
documented and may break in newer CMake versions.)
Kevin Kofler