Some small additions to the CMakeLists.txt file will improve the build portability. For example, if an updated version of flex is installed in /usr/local/flex, so as not to overwrite the installed system version, this can be found by the cmake find_package(FLEX required) command, but the relevant include and lib directories will not be used without the additional lines: