file(READ @CMAKE_CURRENT_BINARY_DIR@/scan.c file_contents)
string(REPLACE "yy" "aag" file_contents "${file_contents}")
-string(REPLACE "extern int isatty (int );" "" file_contents "${file_contents}")
file(WRITE @CMAKE_CURRENT_BINARY_DIR@/scan.c "${file_contents}")
# Modify files generated by Bison and Flex, to match the Autotools build.
# - Replace "yy" with "aag" in all three files
-# - Remove declaration of the "isatty()" function from scan.c
configure_file(
"${TOP_SOURCE_DIR}/cmake/modify_cgraph_grammar.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/modify_cgraph_grammar.cmake"