cmake: Fix minimum required version by stotko · Pull Request #71 · stotko/stdgpu (original) (raw)

The current minimum required CMake version is set to 3.13 since the project uses some of its newly introduced features. However, the project is configured to use the NEW behavior of more recent CMake policies until version 3.15. Since the CI uses the newest version, this effectively only verifies builds where the minimum required version would be set to 3.15.

This caused a further implicit dependency getting unnoticed so far. When building on Windows, a further requirement is the NEW behavior of CMake policy CMP00091. Fix this issue by increasing the minimum required CMake version. Futhermore, increase the maximum version where policies are set to NEW to the most recent version 3.16.