Skip to content

Alternate fix to the Flex include path problem on MacOS #18

Description

@guy-middleton

Here is another fix to the Flex include path problem on MacOS, assuming use of Flex installed with homebrew:

$ cmake -D CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=/usr/local/opt/flex/include ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/guy_middleton/src/simple_wc_example/build
$ make
Consolidate compiler generated dependencies of target my_wc
[ 14%] Building CXX object CMakeFiles/my_wc.dir/main.cpp.o
[ 28%] Building CXX object CMakeFiles/my_wc.dir/mc_driver.cpp.o
[ 42%] Building CXX object CMakeFiles/my_wc.dir/mc_lexer.yy.cc.o
[ 57%] Building CXX object CMakeFiles/my_wc.dir/mc_parser.tab.cc.o
[ 71%] Linking CXX executable my_wc
[100%] Built target my_wc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions