[cmake] Require CMake 3.1
- Follow Dune core modules 2.6.
- Prevents CMake warning when using dune-common 2.6.
Unless you want to stay compatible with Dune 2.5 and keep its lower required CMake version.
Merge request reports
Activity
Not as far as I know. But @ansgar may know ways to simplify the uggrid cmake code if a newer cmake is mandatory.
Regarding Markus: There was a decision to require CMake 3.1 for Dune 2.6. At some places we had workaround for bugs that I removed because we require now 3.1. Going back to 2.8.12 you have to restore those parts and check whether you have to fix other bugs in newly added code.
Regarding Christion: Within dune-uggrid you are probably right, there might be no CMake 3.1+ code in this module. But code from dune-common is executed, but with a diverging minimal required CMake version. As a consequence some policies are set differently, this might trigger subtle bugs and cause some warning. That's why I state, if you want to use dune-uggrid with dune-common, better require CMake 3.1. On the other hand, what harm is done, if dune-uggrid requires CMake 3.1 even if run together with Dune 2.5? PDELab went the same road already for 2.5.
mentioned in commit fcc8a34d