Configuration error with CMake 3.14
Apologies if this has been reported, issue search did not reveal anything.
When trying to configure latest release (9.1.0) with CMake 3.14, the following error occurs (full log is attached):
CMake Error at /usr/local/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:195 (message):
Unknown keywords given to FIND_PACKAGE_HANDLE_STANDARD_ARGS():
"REASON_FAILURE_MESSAGE"
Call Stack (most recent call first):
CMake/patches/3.22/FindMPI.cmake:1823 (find_package_handle_standard_args)
CMake/vtkModule.cmake:4397 (find_package)
CMake/vtkModule.cmake:4997 (vtk_module_find_package)
Utilities/MPI/CMakeLists.txt:1 (vtk_module_third_party_external)
-- Configuring incomplete, errors occurred!
The error is caused by the following line, which uses a new CMake 3.16 keyword REASON_FAILURE_MESSAGE
: https://gitlab.kitware.com/vtk/vtk/-/blob/d79e2977b601db1e0592c02b1536f39b6b367314/CMake/patches/3.22/FindMPI.cmake#L1826
The error did not occur in 9.0.3. The change was introduced in 63438550.
Edited by Sergey Klevtsov