Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
teaching
nswi098
Cecko
skeleton
Commits
1af3348e
Commit
1af3348e
authored
Oct 30, 2020
by
Bednárek David RNDr. Ph.D.
Browse files
Generate counterexamples for conflicts (if bison version is at least 3.7.0)
parent
b1ed4ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeConf.cmake
View file @
1af3348e
...
...
@@ -115,7 +115,11 @@ function(FLEX_BISON_SOURCE TARGET LEXFNAME YFNAME LEXCPP YCPP YHPP)
get_filename_component
(
YFNAME_PATH
"
${
YFNAME
}
"
ABSOLUTE
)
FLEX_TARGET
(
"
${
LEXCPP
}
"
"
${
LEXFNAME_PATH
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
LEXCPP
}
"
)
BISON_TARGET
(
"
${
YCPP
}
"
"
${
YFNAME_PATH
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YCPP
}
"
DEFINES_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YHPP
}
"
VERBOSE REPORT_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YFNAME
}
.output"
)
if
(
"
${
BISON_VERSION
}
"
VERSION_GREATER_EQUAL
"3.7.0"
)
BISON_TARGET
(
"
${
YCPP
}
"
"
${
YFNAME_PATH
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YCPP
}
"
COMPILE_FLAGS
"-Wcounterexamples"
DEFINES_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YHPP
}
"
VERBOSE REPORT_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YFNAME
}
.output"
)
else
()
BISON_TARGET
(
"
${
YCPP
}
"
"
${
YFNAME_PATH
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YCPP
}
"
DEFINES_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YHPP
}
"
VERBOSE REPORT_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
YFNAME
}
.output"
)
endif
()
ADD_FLEX_BISON_DEPENDENCY
(
"
${
LEXCPP
}
"
"
${
YCPP
}
"
)
DEFINE_FLEX_SOURCE
(
"
${
TARGET
}
"
"
${
LEXFNAME
}
"
"
${
LEXCPP
}
"
"
${
YHPP
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment