Skip to content

Commit 7d998c5

Browse files
authored
Require a mininum of CMake 3.5 compatibility for librdkafka build. (#766)
1 parent 3a5ad93 commit 7d998c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rdkafka-sys/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ fn build_librdkafka() {
213213
// want a stable location that we can add to the linker search path.
214214
// Since we're not actually installing to /usr or /usr/local, there's no
215215
// harm to always using "lib" here.
216-
.define("CMAKE_INSTALL_LIBDIR", "lib");
216+
.define("CMAKE_INSTALL_LIBDIR", "lib")
217+
// CMake 4.0.0 drops support for 3.2 compatibility, which is
218+
// required by librdkafka 2.3.0.
219+
.define("CMAKE_POLICY_VERSION_MINIMUM", "3.5");
217220

218221
if env::var("CARGO_FEATURE_LIBZ").is_ok() {
219222
config.define("WITH_ZLIB", "1");

0 commit comments

Comments
 (0)