aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-02-05 21:23:19 -0500
committerJames McCoy <jamessan@jamessan.com>2016-02-05 21:23:19 -0500
commit1d1574e0aca3cd270e7d4b2656e1aa11861d70af (patch)
treeefcea2610763c547b8f088380c9f7e0dbbf7b568
parent79e7c03f914847508d9cc5be36b4a5e40669a99a (diff)
downloadrneovim-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.cmake4
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)