mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +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)
|
if (MSVC)
|
||||||
add_compile_options(/J) # Similar to -funsigned-char on other platforms
|
add_compile_options(/J) # Similar to -funsigned-char on other platforms
|
||||||
set_property(
|
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
|
||||||
SOURCE bif_lex.cc
|
|
||||||
APPEND_STRING
|
|
||||||
PROPERTY COMPILE_FLAGS "/wd4018")
|
|
||||||
else ()
|
else ()
|
||||||
set_property(
|
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
||||||
SOURCE bif_lex.cc
|
|
||||||
APPEND_STRING
|
|
||||||
PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include_directories(BEFORE ${BifCl_SOURCE_DIR}/include ${BifCl_BINARY_DIR})
|
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")
|
set(BISON_FLAGS "--debug")
|
||||||
|
|
||||||
# BIF parser/scanner
|
# BIF parser/scanner
|
||||||
bison_target(
|
bison_target(BIFParser builtin-func.y ${BifCl_BINARY_DIR}/bif_parse.cc
|
||||||
BIFParser builtin-func.y ${BifCl_BINARY_DIR}/bif_parse.cc
|
DEFINES_FILE ${BifCl_BINARY_DIR}/bif_parse.h COMPILE_FLAGS "${BISON_FLAGS}")
|
||||||
DEFINES_FILE ${BifCl_BINARY_DIR}/bif_parse.h
|
|
||||||
COMPILE_FLAGS "${BISON_FLAGS}")
|
|
||||||
flex_target(BIFScanner builtin-func.l ${BifCl_BINARY_DIR}/bif_lex.cc)
|
flex_target(BIFScanner builtin-func.l ${BifCl_BINARY_DIR}/bif_lex.cc)
|
||||||
add_flex_bison_dependency(BIFScanner BIFParser)
|
add_flex_bison_dependency(BIFScanner BIFParser)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue