Bump cmake version

Bump CMake version to 3.9, which the oldest version supporting the
project DESCRIPTION option (see
https://cmake.org/cmake/help/latest/command/project.html#command:project),
which was introduced by commit 59821cb.

CMake policy CMP0048 is set to NEW by default since 3.0 and can be
removed.

Fixes #559, fixes #512
This commit is contained in:
Hans-Erik Floryd 2021-10-26 09:47:36 +02:00
parent 5fa8824d33
commit ceab31ceda
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.9)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules")
cmake_policy(SET CMP0048 NEW)
project(SOEM
DESCRIPTION "Simple Open EtherCAT Master"
VERSION 1.4.0

View File

@ -8,7 +8,7 @@ BUILDING
Prerequisites for all platforms
-------------------------------
* CMake 2.8.0 or later
* CMake 3.9 or later
Windows (Visual Studio)