From b8605f130af44951c6755e566de23a929ef0aa3c Mon Sep 17 00:00:00 2001
From: Martin Beseda <martinbeseda@seznam.cz>
Date: Fri, 7 Sep 2018 14:00:03 +0200
Subject: [PATCH] FIX: Boost dependencies of lib4neuro made private

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 544e868b..6690a6e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,8 +29,7 @@ endif()
 #------------#
 # Build type #
 #------------#
-# Default: Release
-# Others: None, Debug
+# Release / None / Debug
 if (NOT CMAKE_BUILD_TYPE)
   set (CMAKE_BUILD_TYPE RELEASE CACHE STRING
       "Choose the type of build, options are: None Debug Release."
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e721942e..3f8fecbf 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,13 +23,18 @@ if ("${BUILD_LIB}" STREQUAL "yes")
 		Solvers/DESolver.cpp        
 	)
 	
-    target_link_libraries(lib4neuro PUBLIC ${Boost_LIBRARIES})
+    target_link_libraries(
+            lib4neuro
+
+            PRIVATE
+                ${Boost_LIBRARIES}
+    )
+
 	target_include_directories(
         lib4neuro
 
         PUBLIC
             ${ROOT_DIR}/include
-#            ${SRC_DIR}
 
         PRIVATE
             ${SRC_DIR}
-- 
GitLab