-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#14320) behaviortree.cpp: add version 4.0.1, support conan v2
* behaviortree.cpp: add version 4.0.1, support conan v2 * enable C++17 on 4.0.1 * link std++fs in gcc 8 * add component system_libs * drop support libstdc++ on clang
- Loading branch information
Showing
12 changed files
with
265 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
sources: | ||
"4.0.1": | ||
url: "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/refs/tags/4.0.1.tar.gz" | ||
sha256: "71544f72abea8e8c246b016b7e8d87d96f731c8aa96698058d8e69d40e56f9b9" | ||
"3.7.0": | ||
url: "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/refs/tags/3.7.0.tar.gz" | ||
sha256: "ab0d8ac1a0df4dd43cf45da8a784bab7fdedf711bd0e227f7ed071f79b0c7b5c" | ||
"3.5.6": | ||
url: "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/refs/tags/3.5.6.tar.gz" | ||
sha256: "543c428602b5acb7c5666aee34feb532e18ce7200870a79b23ff9aed17ee84c4" | ||
patches: | ||
"4.0.1": | ||
- patch_file: "patches/4.0.1-0001-remove-fpic.patch" | ||
- patch_file: "patches/4.0.1-0002-find-zmq.patch" | ||
- patch_file: "patches/4.0.1-0003-no-werror.patch" | ||
- patch_file: "patches/3.5.6-0005-stdc-format.patch" | ||
- patch_file: "patches/3.5.6-0005-stdc-format.patch" | ||
"3.7.0": | ||
- patch_file: "patches/3.7.0-0001-remove-fpic.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.7.0-0002-find-zmq.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.7.0-0003-no-werror.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.5.6-0005-stdc-format.patch" | ||
base_path: "src" | ||
"3.5.6": | ||
- patch_file: "patches/3.5.6-0001-remove-fpic.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.5.6-0002-find-zmq.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.5.6-0003-no-werror.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.5.6-0004-win-sigaction.patch" | ||
base_path: "src" | ||
- patch_file: "patches/3.5.6-0005-stdc-format.patch" | ||
base_path: "src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
recipes/behaviortree.cpp/all/patches/4.0.1-0001-remove-fpic.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d03b8a7..a2f23cf 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -15,8 +15,6 @@ else() | ||
add_definitions(-Wpedantic) | ||
endif() | ||
|
||
-set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
- | ||
#---- project configuration ---- | ||
option(BTCPP_SHARED_LIBS "Build shared libraries" ON) | ||
option(BTCPP_ENABLE_COROUTINES "Enable boost coroutines" ON) |
57 changes: 57 additions & 0 deletions
57
recipes/behaviortree.cpp/all/patches/4.0.1-0002-find-zmq.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a2f23cf..d427d37 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -67,14 +67,14 @@ endif() | ||
|
||
#---- Find other packages ---- | ||
find_package(Threads) | ||
-find_package(ZMQ) | ||
+find_package(ZeroMQ) | ||
|
||
list(APPEND BEHAVIOR_TREE_PUBLIC_LIBRARIES | ||
${CMAKE_THREAD_LIBS_INIT} | ||
${CMAKE_DL_LIBS} | ||
) | ||
|
||
-if( ZMQ_FOUND ) | ||
+if( ZeroMQ_FOUND ) | ||
message(STATUS "ZeroMQ found.") | ||
add_definitions( -DZMQ_FOUND ) | ||
list(APPEND BT_SOURCE src/loggers/bt_zmq_publisher.cpp) | ||
@@ -221,7 +221,7 @@ target_link_libraries(${BEHAVIOR_TREE_LIBRARY} | ||
${BEHAVIOR_TREE_PUBLIC_LIBRARIES} | ||
PRIVATE | ||
${Boost_LIBRARIES} | ||
- ${ZMQ_LIBRARIES} | ||
+ ${ZeroMQ_LIBRARIES} | ||
$<BUILD_INTERFACE:foonathan::lexy> | ||
) | ||
|
||
@@ -243,8 +243,8 @@ target_include_directories(${BEHAVIOR_TREE_LIBRARY} PRIVATE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/lexy/include> | ||
) | ||
|
||
-if( ZMQ_FOUND ) | ||
- target_compile_definitions(${BEHAVIOR_TREE_LIBRARY} PUBLIC ZMQ_FOUND) | ||
+if( ZeroMQ_FOUND ) | ||
+ target_compile_definitions(${BEHAVIOR_TREE_LIBRARY} PUBLIC ZeroMQ_FOUND) | ||
endif() | ||
|
||
if(MSVC) | ||
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt | ||
index 163e703..b98f525 100644 | ||
--- a/tools/CMakeLists.txt | ||
+++ b/tools/CMakeLists.txt | ||
@@ -7,9 +7,9 @@ target_link_libraries(bt3_log_cat ${BEHAVIOR_TREE_LIBRARY} ) | ||
install(TARGETS bt3_log_cat | ||
DESTINATION ${BEHAVIOR_TREE_BIN_DESTINATION} ) | ||
|
||
-if( ZMQ_FOUND ) | ||
+if( ZeroMQ_FOUND ) | ||
add_executable(bt3_recorder bt_recorder.cpp ) | ||
- target_link_libraries(bt3_recorder ${BEHAVIOR_TREE_LIBRARY} ${ZMQ_LIBRARIES}) | ||
+ target_link_libraries(bt3_recorder ${BEHAVIOR_TREE_LIBRARY} ${ZeroMQ_LIBRARIES}) | ||
install(TARGETS bt3_recorder | ||
DESTINATION ${BEHAVIOR_TREE_BIN_DESTINATION} ) | ||
endif() |
13 changes: 13 additions & 0 deletions
13
recipes/behaviortree.cpp/all/patches/4.0.1-0003-no-werror.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d427d37..0c10f52 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -250,7 +250,7 @@ endif() | ||
if(MSVC) | ||
else() | ||
target_compile_options(${BEHAVIOR_TREE_LIBRARY} PRIVATE | ||
- -Wall -Wextra -Werror=return-type) | ||
+ -Wall -Wextra) | ||
endif() | ||
|
||
############################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package CXX) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(BehaviorTreeV3 CONFIG REQUIRED) | ||
cmake_minimum_required(VERSION 3.8) | ||
project(test_package LANGUAGES CXX) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} BT::behaviortree_cpp_v3) | ||
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14) | ||
|
||
find_package(BehaviorTreeV3 CONFIG) | ||
if(TARGET BT::behaviortree_cpp_v3) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE BT::behaviortree_cpp_v3) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE -DBEHAVIORTREE_CPP_VERSION=3) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14) | ||
else() | ||
find_package(BehaviorTree REQUIRED CONFIG) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE BT::behaviortree_cpp) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE -DBEHAVIORTREE_CPP_VERSION=4) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) | ||
endif() |
Oops, something went wrong.