From 33480f1862e159d4c284bbdbd3a1316b46a1f56c Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Tue, 27 Oct 2020 00:59:09 +0100
Subject: [PATCH] [cmake] update minimum version to 3.15 and update boost
 dependency

---
 CMakeLists.txt     | 2 +-
 Src/CMakeLists.txt | 9 ++-------
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb9d7e6..6cff54f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.13)
+cmake_minimum_required(VERSION 3.15)
 
 exec_program("git" ${CMAKE_CURRENT_SOURCE_DIR} ARGS "describe --dirty --always --exclude '*'" OUTPUT_VARIABLE SOURCE_VERSION)
 
diff --git a/Src/CMakeLists.txt b/Src/CMakeLists.txt
index f21bdd6..2cb6174 100644
--- a/Src/CMakeLists.txt
+++ b/Src/CMakeLists.txt
@@ -9,13 +9,8 @@ if( CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR )
 endif()
 target_link_libraries(${target} biotracker-interfaces)
 
-find_package(Boost REQUIRED system filesystem chrono timer)
-target_link_libraries(${target} 
-  ${Boost_FILESYSTEM_LIBRARY}
-  ${Boost_SYSTEM_LIBRARY}
-  ${Boost_CHRONO_LIBRARY}
-  ${Boost_TIMER_LIBRARY}
-)
+find_package(Boost REQUIRED COMPONENTS system filesystem chrono timer)
+target_link_libraries(${target} Boost::headers Boost::system Boost::filesystem Boost::chrono Boost::timer)
 
 install(
     TARGETS
-- 
GitLab