diff options
Diffstat (limited to 'fluent-bit/lib/chunkio/cmake/macros.cmake')
-rw-r--r-- | fluent-bit/lib/chunkio/cmake/macros.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fluent-bit/lib/chunkio/cmake/macros.cmake b/fluent-bit/lib/chunkio/cmake/macros.cmake new file mode 100644 index 00000000..cbc5d6ae --- /dev/null +++ b/fluent-bit/lib/chunkio/cmake/macros.cmake @@ -0,0 +1,6 @@ +# Macro to set definitions +macro(CIO_DEFINITION var) + add_definitions(-D${var}) + set(CIO_BUILD_FLAGS "${CIO_BUILD_FLAGS}#ifndef ${var}\n#define ${var}\n#endif\n") + set(CIO_INFO_FLAGS "${CIO_INFO_FLAGS} ${var}") +endmacro() |