From 439eba096c7458d88c70f9fdbfff7c64b5d234ac Mon Sep 17 00:00:00 2001 From: Grey Date: Fri, 20 May 2022 14:03:02 +0800 Subject: [PATCH] Always link rmf_traffic against the Threads target (#74) Signed-off-by: Michael X. Grey --- rmf_traffic/CMakeLists.txt | 1 + rmf_traffic/cmake/rmf_traffic-config.cmake.in | 1 + 2 files changed, 2 insertions(+) diff --git a/rmf_traffic/CMakeLists.txt b/rmf_traffic/CMakeLists.txt index 955ac858..bcf10840 100644 --- a/rmf_traffic/CMakeLists.txt +++ b/rmf_traffic/CMakeLists.txt @@ -97,6 +97,7 @@ endif() target_link_libraries(rmf_traffic PUBLIC rmf_utils::rmf_utils + Threads::Threads PRIVATE ${FCL_LIBRARIES} ) diff --git a/rmf_traffic/cmake/rmf_traffic-config.cmake.in b/rmf_traffic/cmake/rmf_traffic-config.cmake.in index 50c16132..159ee8a2 100644 --- a/rmf_traffic/cmake/rmf_traffic-config.cmake.in +++ b/rmf_traffic/cmake/rmf_traffic-config.cmake.in @@ -7,6 +7,7 @@ include(CMakeFindDependencyMacro) @RMF_TRAFFIC_DEPENDS_EIGEN3_CMAKE_MODULE@ find_dependency(Eigen3) find_dependency(rmf_utils) +find_dependency(Threads) if(NOT TARGET rmf_traffic::rmf_traffic) include("${rmf_traffic_CMAKE_DIR}/rmf_traffic-targets.cmake")