Skip to content
  • Ondrej Balaz's avatar
    FindBISON: Fix bison++ version parsing to avoid "Offending entry" · f30f9a50
    Ondrej Balaz authored and Brad King's avatar Brad King committed
    I've just found out that use of FindBISON.cmake shipped with CMake 2.8
    on system where bison++ is default bison executable (e.g. Debian Linux)
    will result in corrupted CMakeCache.txt file and parse error due to
    "Offending entry"
    
    As FindBISON.cmake logic used to obtain installed bison executable
    version is tailored to match only the message used in GNU Bison it fails
    on absolutely different Bison++ version message and whole version
    message including \n characters is stored into BISON_VERSION which is
    then dumped into CMakeCache.txt, so everything after first \n character
    makes "Offending entry".
    f30f9a50