Files
termux-packages/root-packages/tshark/cmake-modules-UseLemon.cmake.patch
termux-pacman-bot 2c11debc5a bump(root/tshark): 4.6.0
Add patch file to allow cmake to find lemon executable from host build.
2025-10-09 08:41:01 +00:00

14 lines
438 B
Diff

# Allow cmake to find lemon executable from host build
--- a/cmake/modules/UseLemon.cmake
+++ b/cmake/modules/UseLemon.cmake
@@ -3,7 +3,7 @@
# If we're cross-compiling and /usr/share/lemon/lempar.c exists, try to
# find the system lemon and use it. We need to build our own lemon
# otherwise.
-if (CMAKE_CROSSCOMPILING AND EXISTS /usr/share/lemon/lempar.c)
+if (CMAKE_CROSSCOMPILING)
find_program(LEMON_EXECUTABLE lemon)
endif()