build_oai/build_helper: use $CMAKE

Some distributions, e.g., CentOS8 or RHEL8, ship with an old cmake
(v2.8). To provide a newer, they have a separate cmake3 package, where a
recent cmake version is in program cmake3. To be agnostic, build_helper
detects the distribution and choses the cmake program to use.

This commit uses the correct cmake, which is provided in the environment
variable $CMAKE.
This commit is contained in:
Robert Schmidt
2023-07-31 15:53:59 +02:00
parent a3ddabafc6
commit 3161add2c1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -523,7 +523,7 @@ function main() {
echo_info "Doxygen generation log is located here: $doxygen_log"
echo_info "Generating Doxygen files....please wait"
(
cmake --build . --target doc
$CMAKE --build . --target doc
) >& $doxygen_log
fi