mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/robin/gh-4301-with-spicy'
* origin/topic/robin/gh-4301-with-spicy: Fix `--with-spicy`.
This commit is contained in:
commit
6bf6e695b5
2 changed files with 14 additions and 10 deletions
|
@ -10,16 +10,20 @@ set_target_properties(spicyz PROPERTIES CXX_EXTENSIONS OFF)
|
|||
|
||||
target_include_directories(spicyz PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
if (BINARY_PACKAGING_MODE)
|
||||
# Ensure we link against the HILTI/Spicy toolchain libraries (should be
|
||||
# default, but isn't set here for some reason).
|
||||
set(HAVE_TOOLCHAIN ON)
|
||||
|
||||
hilti_link_object_libraries_in_tree(spicyz PRIVATE)
|
||||
spicy_link_object_libraries_in_tree(spicyz PRIVATE)
|
||||
if (SPICY_ROOT_DIR)
|
||||
target_link_libraries(spicyz PRIVATE hilti spicy)
|
||||
else ()
|
||||
hilti_link_libraries_in_tree(spicyz PRIVATE)
|
||||
spicy_link_libraries_in_tree(spicyz PRIVATE)
|
||||
if (BINARY_PACKAGING_MODE)
|
||||
# Ensure we link against the HILTI/Spicy toolchain libraries (should be
|
||||
# default, but isn't set here for some reason).
|
||||
set(HAVE_TOOLCHAIN ON)
|
||||
|
||||
hilti_link_object_libraries_in_tree(spicyz PRIVATE)
|
||||
spicy_link_object_libraries_in_tree(spicyz PRIVATE)
|
||||
else ()
|
||||
hilti_link_libraries_in_tree(spicyz PRIVATE)
|
||||
spicy_link_libraries_in_tree(spicyz PRIVATE)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
prefer_configured_spicy_include_dirs(spicyz)
|
||||
|
|
|
@ -13,13 +13,13 @@
|
|||
|
||||
#include <hilti/ast/declarations/type.h>
|
||||
#include <hilti/compiler/init.h>
|
||||
#include <hilti/compiler/plugin.h>
|
||||
|
||||
#include <spicy/ast/types/unit.h>
|
||||
#include <spicy/ast/visitor.h>
|
||||
#include <spicy/autogen/config.h>
|
||||
#include <spicy/compiler/init.h>
|
||||
|
||||
#include "compiler/plugin.h"
|
||||
#include "config.h"
|
||||
#include "glue-compiler.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue