File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,18 @@ set(CMAKE_CXX_STANDARD 17)
1010set (CMAKE_CXX_STANDARD_REQUIRED ON )
1111set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2" )
1212
13- find_package (BISON REQUIRED)
14- find_package (FLEX REQUIRED)
15-
1613# add the binary tree to the search path for include files
1714include_directories (${PROJECT_SOURCE_DIR} )
1815include_directories (parser-verilog)
1916
17+
18+ # -----------------------------------------------------------------------------
19+ # Flex & Bison
20+ # -----------------------------------------------------------------------------
21+
22+ find_package (BISON REQUIRED)
23+ find_package (FLEX REQUIRED)
24+
2025BISON_TARGET(verilog_parser
2126 ${PROJECT_SOURCE_DIR} /parser-verilog/verilog_parser.yy
2227 ${CMAKE_CURRENT_BINARY_DIR} /verilog_parser.tab.cc)
@@ -26,8 +31,6 @@ FLEX_TARGET(verilog_lexer
2631ADD_FLEX_BISON_DEPENDENCY(verilog_lexer verilog_parser)
2732
2833
29-
30-
3134# -----------------------------------------------------------------------------
3235# Example program
3336# -----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments