Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guy-middleton opened this issue Dec 2, 2021 · 0 comments
Open

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

guy-middleton opened this issue Dec 2, 2021 · 0 comments

Comments

@guy-middleton
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant