From b72f1e3e929d26bee3023a54b9f41db4d2ffe488 Mon Sep 17 00:00:00 2001 From: Jiakun Yan Date: Sun, 7 Jan 2024 21:30:49 -0600 Subject: [PATCH] add LCI_VERSION macros --- lci/api/lci_config.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lci/api/lci_config.h.in b/lci/api/lci_config.h.in index 54307a17..2ab5af51 100644 --- a/lci/api/lci_config.h.in +++ b/lci/api/lci_config.h.in @@ -1,6 +1,11 @@ #ifndef LCI_LCI_CONFIG_H #define LCI_LCI_CONFIG_H +#define LCI_VERSION @CMAKE_PROJECT_VERSION@ +#define LCI_VERSION_MAJOR @CMAKE_PROJECT_VERSION_MAJOR@ +#define LCI_VERSION_MINOR @CMAKE_PROJECT_VERSION_MINOR@ +#define LCI_VERSION_PATCH @CMAKE_PROJECT_VERSION_PATCH@ + #cmakedefine LCI_USE_AVX #cmakedefine LCI_DEBUG