File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,16 @@ if (ZMQ_PREFIX STREQUAL "bundled")
303
303
endif ()
304
304
305
305
# use libzmq's own cmake, so we can import the libzmq-static target
306
+ # libzmq uses an ancient policy minimum, no longer supported
307
+ if ("${CMAKE_POLICY_VERSION_MINIMUM} " STREQUAL "" )
308
+ # workaround https://github.com/zeromq/libzmq/pull/4776
309
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.31" )
310
+ set (CMAKE_POLICY_VERSION_MINIMUM "3.31" )
311
+ else ()
312
+ set (CMAKE_POLICY_VERSION_MINIMUM "${CMAKE_VERSION_MAJOR} .${CMAKE_VERSION_MINOR} " )
313
+ endif ()
314
+ message (STATUS "Setting CMAKE_POLICY_VERSION_MINIMUM=${CMAKE_POLICY_VERSION_MINIMUM} for libzmq" )
315
+ endif ()
306
316
set (ENABLE_CURVE ON )
307
317
set (ENABLE_DRAFTS ${ZMQ_DRAFT_API} )
308
318
set (ENABLE_LIBSODIUM_RANDOMBYTES_CLOSE "OFF" )
You can’t perform that action at this time.
0 commit comments