diff options
author | James McCoy <jamessan@jamessan.com> | 2016-02-05 21:23:19 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-02-05 21:23:19 -0500 |
commit | 1d1574e0aca3cd270e7d4b2656e1aa11861d70af (patch) | |
tree | efcea2610763c547b8f088380c9f7e0dbbf7b568 | |
parent | 79e7c03f914847508d9cc5be36b4a5e40669a99a (diff) | |
download | rneovim-1d1574e0aca3cd270e7d4b2656e1aa11861d70af.tar.gz rneovim-1d1574e0aca3cd270e7d4b2656e1aa11861d70af.tar.bz2 rneovim-1d1574e0aca3cd270e7d4b2656e1aa11861d70af.zip |
cmake: Use find_package(Msgpack)'s version in pkg_search_module
Avoid duplicating information by using the Msgpack_FIND_VERSION variable
exported by find_package() inside FindMsgpack's pkg_search_module call.
-rw-r--r-- | cmake/FindMsgpack.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/FindMsgpack.cmake b/cmake/FindMsgpack.cmake index 3b20644453..015737d658 100644 --- a/cmake/FindMsgpack.cmake +++ b/cmake/FindMsgpack.cmake @@ -7,7 +7,9 @@ if(NOT MSGPACK_USE_BUNDLED) find_package(PkgConfig) if (PKG_CONFIG_FOUND) - pkg_search_module(PC_MSGPACK QUIET msgpackc>=1.0 msgpack>=1.0) + pkg_search_module(PC_MSGPACK QUIET + msgpackc>=${Msgpack_FIND_VERSION} + msgpack>=${Msgpack_FIND_VERSION}) endif() else() set(PC_MSGPACK_INCLUDEDIR) |