--- CMakeLists.txt.orig 2012-03-22 16:47:04.000000000 +0100 +++ CMakeLists.txt 2012-03-22 16:47:45.000000000 +0100 @@ -31,8 +31,10 @@ FIND_PROGRAM(FLEX_EXECUTABLE NAMES flex - PATHS /usr/bin - DOC "Flex executable") + PATHS /usr/local/bin + DOC "Flex executable" + NO_DEFAULT_PATH + NO_SYSTEM_ENVIRONMENT_PATH) FIND_PROGRAM(BISON_EXECUTABLE NAMES bison