simple_wc_example icon indicating copy to clipboard operation
simple_wc_example copied to clipboard

Alternate fix to the Flex include path problem on MacOS

Open guy-middleton opened this issue 3 years ago • 0 comments

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

guy-middleton avatar Dec 02 '21 20:12 guy-middleton