WIP: Fix CMake 3.15 warning (No project() command)
CMake 3.15 will warn if there is no explicit project command in the top-level CMakeLists.txt, as requested by the documentation. See https://gitlab.kitware.com/cmake/cmake/merge_requests/3245 and https://gitlab.kitware.com/cmake/cmake/issues/17714 at CMake's GitLab.
Here we check that project
was called and warn (again for CMake >= 3.15),
giving instructions including setting LANGUAGES
. The FORTRAN
option is
deprecated. The Gaudi CMakeLists.txt is fixed, also dropping the C language
on the way.
For reference, the warning from CMake is:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.