aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2023-09-25 09:15:52 -0400
committerGerald Combs <gerald@wireshark.org>2023-09-27 01:16:43 +0000
commit3716933046a565c06da3b637c91cd7f1af36e23b (patch)
treedc4d6e177f305a2ea5795e5a5f978f7ae3cf3273 /cmake/modules
parent7ea5bbb53baa2aab89a601690333a230a3b05f97 (diff)
lemon: Add -- support to end options
Patch lemon to stop parsing options upon encountering "--". This prevents an issue in the unlikely situation where the source directory or a source filename has a '=' in it, or starts with a "-". This has been reported to sqlite upstream.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/UseLemon.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
index e419de1a98..10f02fd441 100644
--- a/cmake/modules/UseLemon.cmake
+++ b/cmake/modules/UseLemon.cmake
@@ -14,6 +14,7 @@ if(LEMON_EXECUTABLE)
COMMAND ${LEMON_EXECUTABLE}
-T/usr/share/lemon/lempar.c
-d.
+ --
${_in}
DEPENDS
${_in}
@@ -32,6 +33,7 @@ else()
COMMAND $<TARGET_FILE:lemon>
-T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
-d.
+ --
${_in}
DEPENDS
${_in}