aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2021-08-25 20:13:03 +0300
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-08-31 19:19:05 +0000
commit49240e23b4cf890df67d81d1900f313d1193db8c (patch)
treee72c23da04d660ec26014da346462a5934c530d4 /cmake/modules
parent2dc8b74afccd2da2d64854f94be94b65b3595489 (diff)
cmake: lemon: fix path to internal lemon tool
Wireshark fails to build when cross-compiling on Gentoo/ChromeOS systems because the lemon command is not properly specified or included in PATH, failing with: /bin/sh: lemon: command not found The relevant excerpt from build.ninja is: COMMAND = cd ..._build/plugins/epan/mate && lemon -T.../tools/lemon/lempar.c -d. .../plugins/epan/mate/mate_grammar.lemon By specifying the full path to "lemon" we ensure it is always searched and found in the correct location.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/UseLemon.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
index 849ffc1c87..28c4982931 100644
--- a/cmake/modules/UseLemon.cmake
+++ b/cmake/modules/UseLemon.cmake
@@ -13,7 +13,7 @@ MACRO(ADD_LEMON_FILES _source _generated)
# These files are generated as side-effect
${_out}.h
${_out}.out
- COMMAND lemon
+ COMMAND $<TARGET_FILE:lemon>
-T${_lemonpardir}/lempar.c
-d.
${_in}