summaryrefslogtreecommitdiff
path: root/cmake/bison.cmake
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-04-06 20:58:12 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-07 06:30:05 +0400
commit75d1962a247ed6f14d662984bc5497eb355639dc (patch)
treea5611cd32ea8f21901184865c76b31153fa922eb /cmake/bison.cmake
parent191f26260034cbc4dbf19ec5cb32ba21b0fd32bd (diff)
downloadmariadb-git-75d1962a247ed6f14d662984bc5497eb355639dc.tar.gz
Using the -t command line to bison instead of %name-prefix
Needed to compile on machines with older bison versions. Adding a new parameter "name_prefix" to RUN_BISON() cmake macro.
Diffstat (limited to 'cmake/bison.cmake')
-rw-r--r--cmake/bison.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/bison.cmake b/cmake/bison.cmake
index 9651fe70cbb..a6a6268c644 100644
--- a/cmake/bison.cmake
+++ b/cmake/bison.cmake
@@ -40,7 +40,7 @@ ELSEIF(BISON_EXECUTABLE AND NOT BISON_USABLE)
ENDIF()
# Use bison to generate C++ and header file
-MACRO (RUN_BISON input_yy output_cc output_h)
+MACRO (RUN_BISON input_yy output_cc output_h name_prefix)
IF(BISON_TOO_OLD)
IF(EXISTS ${output_cc} AND EXISTS ${output_h})
SET(BISON_USABLE FALSE)
@@ -50,7 +50,7 @@ MACRO (RUN_BISON input_yy output_cc output_h)
ADD_CUSTOM_COMMAND(
OUTPUT ${output_cc}
${output_h}
- COMMAND ${BISON_EXECUTABLE} -y
+ COMMAND ${BISON_EXECUTABLE} -y -p ${name_prefix}
--output=${output_cc}
--defines=${output_h}
${input_yy}