From 40d295030e910a1a1eb3bf668640322096a8e640 Mon Sep 17 00:00:00 2001 From: Alex Moriarty Date: Thu, 15 Jun 2023 10:32:21 -0300 Subject: [PATCH] cmake: option BUILD_SHARED_LIBS ON Default to building as a shared libary Signed-off-by: Alex Moriarty --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b205423..28e4c19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.5.0) # General setup +option(BUILD_SHARED_LIBS "Build using shared libraries" ON) + set(PROJ_SOVERSION 1) project(serial VERSION 1.2.1