Please make BROTLI_VERSION public #291

Closed
opened 2026-01-29 20:41:27 +00:00 by claunia · 1 comment
Owner

Originally created by @lemzwerg on GitHub (Sep 5, 2019).

At least two reasons.

  1. decode.h and encode.h both refer to BROTLI_VERSION.
  2. CMake support would be improved; a file FindBrotli.cmake could easily return a version number in environments where pkg-config is not available.
Originally created by @lemzwerg on GitHub (Sep 5, 2019). At least two reasons. 1. `decode.h` and `encode.h` both refer to `BROTLI_VERSION`. 2. CMake support would be improved; a file `FindBrotli.cmake` could easily return a version number in environments where `pkg-config` is not available.
Author
Owner

@eustas commented on GitHub (Jan 28, 2020):

Version is intentionally "runtime only" to avoid compile-time dependency, that would be a perfect way to shoot one's foot.
If absolutely necessary, there is an easy way to get the version with CMake - try_run a tiny program that just dumps version to stdout.

@eustas commented on GitHub (Jan 28, 2020): Version is intentionally "runtime only" to avoid compile-time dependency, that would be a perfect way to shoot one's foot. If absolutely necessary, there is an easy way to get the version with CMake - `try_run` a tiny program that just dumps version to stdout.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#291