Skip to content

Commit c9da89d

Browse files
leamasmoriarty
authored andcommitted
cmake: Use cmake >= 3.5, add project setup.
Cmake made major changes in the 2.x -> 3.0 switch, keeping the 2.x compatiblity just isn't worth it. Since serial anyway doesn't build on versions before xenial, use xenial's cmake at 3.5 as baseline. Cherry-pick from PR wjwwood#231 Conflicts: CMakeLists.txt Author: Alec Leamas <[email protected]> Date: Tue Sep 22 13:08:46 2020 +0200 Gbp-Pq: Name 0001-cmake-Use-cmake-3.5-add-project-setup.patch Signed-off-by: Alex Moriarty <[email protected]>
1 parent 380c4e4 commit c9da89d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
cmake_minimum_required(VERSION 2.8.12)
2-
project(serial)
1+
cmake_minimum_required(VERSION 3.5.0)
2+
3+
# General setup
4+
project(serial
5+
VERSION 1.2.1
6+
DESCRIPTION "Cross-platform, Serial Port library written in C++"
7+
HOMEPAGE_URL "http://wjwwood.io/serial/"
8+
)
39

410
if(APPLE)
511
find_library(IOKIT_LIBRARY IOKit)

0 commit comments

Comments
 (0)