aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-02-04 22:38:45 -0500
committerJames McCoy <jamessan@jamessan.com>2016-02-05 19:46:53 -0500
commit79e7c03f914847508d9cc5be36b4a5e40669a99a (patch)
treeae8ad14c935d2338fce66be9fdd94099884b9e88
parent2be51f5e858eb210ff70c1666854f1bce9c8756f (diff)
downloadrneovim-79e7c03f914847508d9cc5be36b4a5e40669a99a.tar.gz
rneovim-79e7c03f914847508d9cc5be36b4a5e40669a99a.tar.bz2
rneovim-79e7c03f914847508d9cc5be36b4a5e40669a99a.zip
cmake: msgpack: Check all lib names per directory
By default, find_library() searches all directories for one possible name and then looks for the next name. To make sure we're building against the same headers and libraries, look for all names in a directory before moving to the next one.
-rw-r--r--cmake/FindMsgpack.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/FindMsgpack.cmake b/cmake/FindMsgpack.cmake
index a03b095080..3b20644453 100644
--- a/cmake/FindMsgpack.cmake
+++ b/cmake/FindMsgpack.cmake
@@ -43,6 +43,9 @@ endif()
list(APPEND MSGPACK_NAMES msgpackc msgpack)
find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES}
+ # Check each directory for all names to avoid using headers/libraries from
+ # different places.
+ NAMES_PER_DIR
HINTS ${PC_MSGPACK_LIBDIR} ${PC_MSGPACK_LIBRARY_DIRS}
${LIMIT_SEARCH})