From 49799b8beb516d4c458681d015627369a33570e4 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 15 Jun 2023 10:46:06 +0200 Subject: [PATCH] ZeekPluginBootstrap: Encode Zeek's CMAKE_BUILD_TYPE ...and bump cmake to have plugin's make use of it. Relates to #3090. --- cmake | 2 +- src/ZeekPluginBootstrap.cmake.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake b/cmake index 07473b7253..d16c1dc078 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 07473b7253f32025c79471bcf13e69d7e74499e4 +Subproject commit d16c1dc078929a1fa6a57d23b6943928f0910f7d diff --git a/src/ZeekPluginBootstrap.cmake.in b/src/ZeekPluginBootstrap.cmake.in index 1e1e11713c..4a56007d41 100644 --- a/src/ZeekPluginBootstrap.cmake.in +++ b/src/ZeekPluginBootstrap.cmake.in @@ -17,3 +17,7 @@ set(ZEEK_CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" # the package directory. set(ZEEK_PLUGIN_SCRIPTS_PATH "${ZEEK_CMAKE_CONFIG_DIR}" CACHE PATH "Path to utility scripts for building Zeek plugins." FORCE) + +# The CMAKE_BUILD_TYPE type to use for external plugins if not overridden. +set(ZEEK_CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@" + CACHE PATH "Internal Zeek variable: CMAKE_BUILD_TYPE of Zeek." FORCE)