diff --git a/CMakeLists.txt b/CMakeLists.txt index 18fd92e..3be8b9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ add_definitions(-Wall -Wno-deprecated-register -std=c++0x -DYYDEBUG=0 -O2) bison_target(Parser Monicelli.ypp ${CMAKE_CURRENT_BINARY_DIR}/Parser.cpp) flex_target(Scanner Monicelli.lpp ${CMAKE_CURRENT_BINARY_DIR}/Lexer.cpp) +add_flex_bison_dependency(Scanner Parser) add_executable( mcc