diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:18 +0000 |
commit | 5da14042f70711ea5cf66e034699730335462f66 (patch) | |
tree | 0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/fluent-bit/lib/ctraces/cmake/macros.cmake | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz netdata-5da14042f70711ea5cf66e034699730335462f66.zip |
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/fluent-bit/lib/ctraces/cmake/macros.cmake')
-rw-r--r-- | src/fluent-bit/lib/ctraces/cmake/macros.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/ctraces/cmake/macros.cmake b/src/fluent-bit/lib/ctraces/cmake/macros.cmake new file mode 100644 index 000000000..877ab14cb --- /dev/null +++ b/src/fluent-bit/lib/ctraces/cmake/macros.cmake @@ -0,0 +1,10 @@ +# Macro to set definitions +macro(CTR_DEFINITION var) + add_definitions(-D${var}) + set(CTR_BUILD_FLAGS "${CTR_BUILD_FLAGS}#ifndef ${var}\n#define ${var}\n#endif\n") + set(CTR_INFO_FLAGS "${CTR_INFO_FLAGS} ${var}") +endmacro() + +macro(CTR_OPTION option value) + set(${option} ${value} CACHE INTERNAL "" FORCE) +endmacro() |