mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Always generate helper scripts for Spicy.
We previously only generated these files if configuring a build which included Spicy. This meant that e.g., `zeek-path-dev.*` scripts would emit errors for non-existing paths if Spicy was not included. We now always generate the helper scripts so we can reference them regardless of build configuration. If Spicy is not included the files will still be sourced, but have no actual effect.
This commit is contained in:
parent
da9148f535
commit
c68cfd8d8e
1 changed files with 15 additions and 11 deletions
|
@ -694,6 +694,20 @@ if ( NOT DISABLE_SPICY )
|
|||
add_dependencies(plugin-Zeek-Spicy spicy)
|
||||
add_dependencies(spicyz spicy)
|
||||
|
||||
# Also install spicy-plugin's CMake files into Zeek's global `cmake/` folder.
|
||||
#
|
||||
# NOTE: We do not install spicy-plugin's `FindZeek.cmake` since another
|
||||
# version of this file is already provided by Zeek.
|
||||
install(FILES auxil/spicy-plugin/cmake/ZeekSpicyAnalyzerSupport.cmake
|
||||
auxil/spicy-plugin/cmake/FindSpicy.cmake
|
||||
DESTINATION share/zeek/cmake)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
# Always generate helper scripts referenced in e.g., `zeek-path-dev.*` so the
|
||||
# scripts work in any build configuration. If we do not include Spicy these
|
||||
# files have no actual effect.
|
||||
#
|
||||
# Spicy JIT relies on the path of the current executable to figure out
|
||||
# whether it is run from a build or an install tree. This assumption
|
||||
# gets broken for e.g., `spicyz` when running from the build tree
|
||||
|
@ -705,16 +719,6 @@ if ( NOT DISABLE_SPICY )
|
|||
configure_file(${CMAKE_SOURCE_DIR}/auxil/spicy/spicy-path.in ${CMAKE_BINARY_DIR}/spicy-path @ONLY)
|
||||
configure_file(${CMAKE_SOURCE_DIR}/auxil/spicy/hilti-cxx-include-dirs.in ${CMAKE_BINARY_DIR}/hilti-cxx-include-dirs @ONLY)
|
||||
|
||||
# Also install spicy-plugin's CMake files into Zeek's global `cmake/` folder.
|
||||
#
|
||||
# NOTE: We do not install spicy-plugin's `FindZeek.cmake` since another
|
||||
# version of this file is already provided by Zeek.
|
||||
install(FILES auxil/spicy-plugin/cmake/ZeekSpicyAnalyzerSupport.cmake
|
||||
auxil/spicy-plugin/cmake/FindSpicy.cmake
|
||||
DESTINATION share/zeek/cmake)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
########################################################################
|
||||
## Packaging Setup
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue