mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
bifcl: Reformat CMakeLists via pre-commit
This commit is contained in:
parent
2f97833acd
commit
234726dac7
1 changed files with 33 additions and 41 deletions
|
@ -8,15 +8,9 @@ find_package(FLEX REQUIRED)
|
|||
|
||||
if (MSVC)
|
||||
add_compile_options(/J) # Similar to -funsigned-char on other platforms
|
||||
set_property(
|
||||
SOURCE bif_lex.cc
|
||||
APPEND_STRING
|
||||
PROPERTY COMPILE_FLAGS "/wd4018")
|
||||
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
|
||||
else ()
|
||||
set_property(
|
||||
SOURCE bif_lex.cc
|
||||
APPEND_STRING
|
||||
PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
||||
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
||||
endif ()
|
||||
|
||||
include_directories(BEFORE ${BifCl_SOURCE_DIR}/include ${BifCl_BINARY_DIR})
|
||||
|
@ -24,10 +18,8 @@ include_directories(BEFORE ${BifCl_SOURCE_DIR}/include ${BifCl_BINARY_DIR})
|
|||
set(BISON_FLAGS "--debug")
|
||||
|
||||
# BIF parser/scanner
|
||||
bison_target(
|
||||
BIFParser builtin-func.y ${BifCl_BINARY_DIR}/bif_parse.cc
|
||||
DEFINES_FILE ${BifCl_BINARY_DIR}/bif_parse.h
|
||||
COMPILE_FLAGS "${BISON_FLAGS}")
|
||||
bison_target(BIFParser builtin-func.y ${BifCl_BINARY_DIR}/bif_parse.cc
|
||||
DEFINES_FILE ${BifCl_BINARY_DIR}/bif_parse.h COMPILE_FLAGS "${BISON_FLAGS}")
|
||||
flex_target(BIFScanner builtin-func.l ${BifCl_BINARY_DIR}/bif_lex.cc)
|
||||
add_flex_bison_dependency(BIFScanner BIFParser)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue