From e6fa96a0b17095eaea1799e3b320d23425192bff Mon Sep 17 00:00:00 2001 From: fynnwilliam Date: Sat, 25 Jun 2022 20:59:56 -0400 Subject: [PATCH 1/3] Compatibility with older versions is not required Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad72647..2318598 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -cmake_minimum_required (VERSION 2.8) +cmake_minimum_required (VERSION 2.8...3.23.2) project (CommonAPI-SomeIP) From 75499f48912cb63a68abaed3bb00272089599af2 Mon Sep 17 00:00:00 2001 From: fynnwilliam Date: Sat, 25 Jun 2022 21:12:18 -0400 Subject: [PATCH 2/3] Move into the build directory to proceed. The script was missing a command - "cd build" as the third step. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2aa5252..17f5e12 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Use CMake to build the CommonAPI SOME/IP runtime library. We assume that your so ```bash $ cd common-api-someip-runtime $ mkdir build +$ cd build $ cmake -D USE_INSTALLED_COMMONAPI=ON -D CMAKE_INSTALL_PREFIX=/usr/local .. $ make $ make install From 4ad83979e7de6962814da6bab94052f4b2f8aab0 Mon Sep 17 00:00:00 2001 From: William Fynn Date: Wed, 6 Sep 2023 18:51:50 +0100 Subject: [PATCH 3/3] CMake older than 2.8.12 is deprecated. Reference here: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#command:cmake_minimum_required --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2318598..f39501d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -cmake_minimum_required (VERSION 2.8...3.23.2) +cmake_minimum_required (VERSION 2.8.12) project (CommonAPI-SomeIP)