mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-29 06:02:40 +00:00
14 lines
438 B
Diff
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()
|
|
|