aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-07-31 09:36:54 -0700
committerCopybara-Service <copybara-worker@google.com>2023-07-31 09:37:29 -0700
commit257884a3c5a1f1448ede055f85c8050398b876ee (patch)
tree6a3604e95483208d97b861b4265a9992e530f360
parentd639a81d35be28ffa281403384fb74e5242e2773 (diff)
downloadbrotli-257884a3c5a1f1448ede055f85c8050398b876ee.zip
brotli-257884a3c5a1f1448ede055f85c8050398b876ee.tar.gz
brotli-257884a3c5a1f1448ede055f85c8050398b876ee.tar.bz2
restore BROTLI_VERSION var in CMake build
PiperOrigin-RevId: 552507047
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf5204d..61378cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,7 @@ endfunction(read_macro)
read_macro("c/common/version.h" "BROTLI_VERSION_MAJOR" BROTLI_VERSION_MAJOR)
read_macro("c/common/version.h" "BROTLI_VERSION_MINOR" BROTLI_VERSION_MINOR)
read_macro("c/common/version.h" "BROTLI_VERSION_PATCH" BROTLI_VERSION_PATCH)
+set(BROTLI_VERSION "${BROTLI_VERSION_MAJOR}.${BROTLI_VERSION_MINOR}.${BROTLI_VERSION_PATCH}")
mark_as_advanced(BROTLI_VERSION BROTLI_VERSION_MAJOR BROTLI_VERSION_MINOR BROTLI_VERSION_PATCH)
# ABI Version information