File tree Expand file tree Collapse file tree 6 files changed +50
-5
lines changed Expand file tree Collapse file tree 6 files changed +50
-5
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in
2
+ index 77a7c18..7eeaceb 100644
3
+ --- a/cmake/Config.cmake.in
4
+ +++ b/cmake/Config.cmake.in
5
+ @@ -1,5 +1,10 @@
6
+ @PACKAGE_INIT@
7
+
8
+ + include(CMakeFindDependencyMacro)
9
+ +
10
+ + find_dependency(Threads)
11
+ + find_dependency(lexy CONFIG)
12
+ +
13
+ include("${CMAKE_CURRENT_LIST_DIR}/@
[email protected] ")
14
+
15
+ set(@PROJECT_NAME@_TARGETS "BT::@PROJECT_NAME@")
Original file line number Diff line number Diff line change @@ -7,8 +7,20 @@ vcpkg_from_github(
7
7
PATCHES
8
8
fix-x86_build.patch
9
9
remove -source-charset.diff
10
+ use-external-lexy.patch
11
+ fix-dependencies.patch
10
12
)
11
13
14
+ # Set BTCPP_SHARED_LIBS based on VCPKG_LIBRARY_LINKAGE
15
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" )
16
+ set (BTCPP_SHARED_LIBS ON )
17
+ else ()
18
+ set (BTCPP_SHARED_LIBS OFF )
19
+ endif ()
20
+
21
+ # Remove vendored lexy directory to prevent conflicts with foonathan-lexy port
22
+ file (REMOVE_RECURSE "${SOURCE_PATH} /3rdparty/lexy" )
23
+
12
24
vcpkg_cmake_configure (
13
25
SOURCE_PATH "${SOURCE_PATH} "
14
26
OPTIONS
@@ -19,6 +31,7 @@ vcpkg_cmake_configure(
19
31
-DBTCPP_BUILD_TOOLS=OFF
20
32
-DBTCPP_GROOT_INTERFACE=OFF
21
33
-DBTCPP_SQLITE_LOGGING=OFF
34
+ -DBTCPP_SHARED_LIBS=${BTCPP_SHARED_LIBS}
22
35
MAYBE_UNUSED_VARIABLES
23
36
CMAKE_DISABLE_FIND_PACKAGE_Curses
24
37
)
@@ -30,7 +43,3 @@ vcpkg_copy_pdbs()
30
43
vcpkg_install_copyright (FILE_LIST "${SOURCE_PATH} /LICENSE" )
31
44
32
45
file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/include" )
33
-
34
- if (VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
35
- file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /bin" "${CURRENT_PACKAGES_DIR} /debug/bin" )
36
- endif ()
Original file line number Diff line number Diff line change
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index aa19bdb..5b12345 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -96,7 +96,8 @@ endif()
6
+ #############################################################
7
+ # LIBRARY
8
+
9
+ - add_subdirectory(3rdparty/lexy)
10
+ + find_package(lexy CONFIG REQUIRED)
11
+ + message(STATUS "Found foonathan-lexy: ${lexy_VERSION}")
12
+
13
+ add_library(minitrace STATIC 3rdparty/minitrace/minitrace.cpp)
14
+ target_compile_definitions(minitrace PRIVATE MTR_ENABLED=True)
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " behaviortree-cpp" ,
3
3
"version" : " 4.7.0" ,
4
+ "port-version" : 1 ,
4
5
"description" : " Behavior Trees Library in C++." ,
5
6
"homepage" : " https://www.behaviortree.dev" ,
6
7
"supports" : " !uwp" ,
7
8
"dependencies" : [
8
9
" boost-coroutine2" ,
9
10
" cppzmq" ,
11
+ " foonathan-lexy" ,
10
12
{
11
13
"name" : " vcpkg-cmake" ,
12
14
"host" : true
Original file line number Diff line number Diff line change 1
1
{
2
2
"versions" : [
3
+ {
4
+ "git-tree" : " 698d27b36d7e3b53430558a6e92d51cc8bd22d79" ,
5
+ "version" : " 4.7.0" ,
6
+ "port-version" : 1
7
+ },
3
8
{
4
9
"git-tree" : " 9e4342eb2c4df9d10a5c47b947bdb121c706a073" ,
5
10
"version" : " 4.7.0" ,
Original file line number Diff line number Diff line change 642
642
},
643
643
"behaviortree-cpp" : {
644
644
"baseline" : " 4.7.0" ,
645
- "port-version" : 0
645
+ "port-version" : 1
646
646
},
647
647
"benchmark" : {
648
648
"baseline" : " 1.9.4" ,
You can’t perform that action at this time.
0 commit comments