vcpkg/ports/behaviortree-cpp/use-external-lexy.patch

15 lines
475 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa19bdb..5b12345 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,8 @@ endif()
#############################################################
# LIBRARY
-add_subdirectory(3rdparty/lexy)
+find_package(lexy CONFIG REQUIRED)
+message(STATUS "Found foonathan-lexy: ${lexy_VERSION}")
add_library(minitrace STATIC 3rdparty/minitrace/minitrace.cpp)
target_compile_definitions(minitrace PRIVATE MTR_ENABLED=True)