mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix for make_dbg_constants target always being out of date.
It would cause the perl script to run with every `make` even if it's not really necessary.
This commit is contained in:
parent
05d2c89618
commit
27d80462da
1 changed files with 4 additions and 10 deletions
|
@ -123,8 +123,6 @@ endforeach(bift)
|
||||||
|
|
||||||
########## targets that need binpac ##########
|
########## targets that need binpac ##########
|
||||||
|
|
||||||
#TODO: need logic to find binpac when it's a separate component?
|
|
||||||
|
|
||||||
macro(BINPAC_TARGET pacFile)
|
macro(BINPAC_TARGET pacFile)
|
||||||
get_filename_component(basename ${pacFile} NAME_WE)
|
get_filename_component(basename ${pacFile} NAME_WE)
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.h
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${basename}_pac.h
|
||||||
|
@ -196,19 +194,16 @@ if (USE_NMALLOC)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/DebugCmdInfoConstants.h
|
${CMAKE_CURRENT_BINARY_DIR}/DebugCmdInfoConstants.cc
|
||||||
COMMAND ${PERL_EXECUTABLE}
|
COMMAND ${PERL_EXECUTABLE}
|
||||||
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/make_dbg_constants.pl
|
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/make_dbg_constants.pl
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/DebugCmdInfoConstants.in
|
${CMAKE_CURRENT_SOURCE_DIR}/DebugCmdInfoConstants.in
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/DebugCmdInfoConstants.in
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/make_dbg_constants.pl
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/DebugCmdInfoConstants.in
|
||||||
COMMENT "[Perl] Processing debug commands"
|
COMMENT "[Perl] Processing debug commands"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(make_dbg_constants DEPENDS
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/DebugCmdInfoConstants.h)
|
|
||||||
|
|
||||||
set(bro_SRCS
|
set(bro_SRCS
|
||||||
${BINPAC_AUXSRC}
|
${BINPAC_AUXSRC}
|
||||||
${BINPAC_RPC_AUXSRC}
|
${BINPAC_RPC_AUXSRC}
|
||||||
|
@ -222,6 +217,7 @@ set(bro_SRCS
|
||||||
${FLEX_REScanner_OUTPUTS}
|
${FLEX_REScanner_OUTPUTS}
|
||||||
parse.cc
|
parse.cc
|
||||||
${FLEX_Scanner_OUTPUTS}
|
${FLEX_Scanner_OUTPUTS}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/DebugCmdConstants.h
|
||||||
main.cc
|
main.cc
|
||||||
net_util.cc
|
net_util.cc
|
||||||
util.cc
|
util.cc
|
||||||
|
@ -368,8 +364,6 @@ add_definitions(-DPOLICYDEST="${CMAKE_INSTALL_PREFIX}/${DATADIR}")
|
||||||
|
|
||||||
add_executable(bro ${bro_SRCS})
|
add_executable(bro ${bro_SRCS})
|
||||||
|
|
||||||
add_dependencies(bro make_dbg_constants)
|
|
||||||
|
|
||||||
target_link_libraries(bro
|
target_link_libraries(bro
|
||||||
m
|
m
|
||||||
binpac_lib
|
binpac_lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue