From 67b4f5f533ab005d0ea1ebae9724bd62f20f4419 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Wed, 2 Sep 2020 12:47:15 +0200
Subject: [PATCH] [CMake] export Boost::program_options

as it should be a private link, but on a target that use
pkg_config_use_dependency, which doesn't allow public/private keyworld
yet
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80ba82f..4df60d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
 # Project dependencies
 SET(CATKIN_REQUIRED_COMPONENTS roscpp std_msgs message_generation std_srvs geometry_msgs sensor_msgs tf2_ros
     realtime_tools)
-FIND_PACKAGE(Boost REQUIRED COMPONENTS program_options)
+ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS program_options)
 
 IF(BUILD_PYTHON_INTERFACE)
   FINDPYTHON()
-- 
GitLab