Merge remote-tracking branch 'origin/topic/jsiwek/gh-831-binary-pkg-bro-symlink'

* origin/topic/jsiwek/gh-831-binary-pkg-bro-symlink:
  GH-831: Fix the "bro" symlink for binary packaging mode
This commit is contained in:
Johanna Amann 2020-03-06 07:45:31 -08:00
commit ca6e6b2b75

View file

@ -357,10 +357,12 @@ set(BRO_EXE zeek
set(BRO_EXE_PATH ${CMAKE_CURRENT_BINARY_DIR}/zeek
CACHE STRING "Path to Zeek executable binary" FORCE)
if ( NOT BINARY_PACKAGING_MODE )
# Older plugins may still use `bro` in unit tests.
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink
"${CMAKE_CURRENT_BINARY_DIR}/../zeek-wrapper.in"
"${CMAKE_CURRENT_BINARY_DIR}/bro")
endif ()
# Target to create all the autogenerated files.
add_custom_target(generate_outputs_stage1)