bootstrap: cmake build breaks if make is not in PATH
cmake build breaks if make is not in PATH
$ ./bootstrap --parallel=8
---------------------------------------------
CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.
---------------------------------------------
Log of errors: /home/balay/tmp/cmake-3.18.0/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
Ok rerun with MAKE env variable set
balay@sb /home/balay/tmp/cmake-3.18.0
$ MAKE=/home/balay/petsc/arch-linux-c-debug/bin/make ./bootstrap --parallel=8
---------------------------------------------
CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: /home/balay/petsc/arch-linux-c-debug/bin/make
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
<snip>
loading initial cache file /home/balay/tmp/cmake-3.18.0/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/balay/tmp/cmake-3.18.0/CMakeFiles/CMakeOutput.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
Perhaps its better if cmake can take MAKE as a command-line option - similar to CC, CXX