BehaviorTree/BehaviorTree.CPP

CMake Error when using "target_link_libraries(myBehaviorTree BT::behaviortree_cpp)

gcMs1 opened this issue · 1 comments

Hi,
I am facing difficulties compiling my CMake project on ubuntu22.04. The following are the content of my CMakelists.txt and the errors in details. By the way, I have installed Behavior_CPP in my computer. Could you kindly help me?

CMakelists.txt:

cmake_minimum_required(VERSION 3.5)

project(btcpp_sample LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(btcpp_sample main.cpp)

find_package(behaviortree_cpp REQUIRED)
target_link_libraries(btcpp_sample BT::behaviortree_cpp)

ERRORS:
截图 2024-04-04 22-17-30

should be fixed with a recent PR merged