cmake: msgpack: Ensure at least version 1.0 is found

Neovim's code relies on functionality introduced in msgpack-c 1.0.0
(at least MSGPACK_OBJECT_FLOAT enum value), so enforce that minimum
version.
This commit is contained in:
James McCoy 2016-01-28 09:01:05 -05:00
parent 50393ef178
commit 33bc33274a

View File

@ -7,7 +7,7 @@
if(NOT MSGPACK_USE_BUNDLED)
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_search_module(PC_MSGPACK QUIET msgpackc msgpack)
pkg_search_module(PC_MSGPACK QUIET msgpackc>=1.0 msgpack>=1.0)
endif()
else()
set(PC_MSGPACK_INCLUDEDIR)