-add_subdirectory(csl)
+find_package(FLEX)
+find_package(BISON)
+
+bison_target(CSL_PARSER csl/parser.yy ${CMAKE_CURRENT_BINARY_DIR}/csl/parser.cc
+ DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/csl/parser.h
+ )
+flex_target(CSL_SCANNER csl/scanner.l ${CMAKE_CURRENT_BINARY_DIR}/csl/scanner.cc
+ DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/csl/scanner.h
+ )
+add_flex_bison_dependency(CSL_SCANNER CSL_PARSER)
set(LIBMEMCACHED_SOURCES
- ${CSL_SOURCES}
+ csl/context.cc
+ ${BISON_CSL_PARSER_OUTPUTS}
+ ${FLEX_CSL_SCANNER_OUTPUTS}
allocators.cc
analyze.cc
array.c
+++ /dev/null
-
-find_package(FLEX)
-find_package(BISON)
-
-flex_target(CSL_SCANNER scanner.l ${CMAKE_CURRENT_SOURCE_DIR}/scanner.cc
- DEFINES_FILE ${CMAKE_CURRENT_SOURCE_DIR}/scanner.h
- )
-bison_target(CSL_PARSER parser.yy ${CMAKE_CURRENT_SOURCE_DIR}/parser.cc
- DEFINES_FILE ${CMAKE_CURRENT_SOURCE_DIR}/parser.h
- )
-add_flex_bison_dependency(CSL_SCANNER CSL_PARSER)
-
-set(CSL_SOURCES
- csl/context.cc
- ${BISON_CSL_PARSER_OUTPUTS}
- ${FLEX_CSL_SCANNER_OUTPUTS}
- PARENT_SCOPE)