diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-26 22:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 22:32:08 +0100 |
commit | 1e37703a74eeebfa14c401db865157c39f1215bf (patch) | |
tree | d5407e5aa49490b748f123c62182115045df15e7 /cmake/FindMsgpack.cmake | |
parent | 774e59f3f9bf50c8350857c6722bb58df2dd940a (diff) | |
download | rneovim-1e37703a74eeebfa14c401db865157c39f1215bf.tar.gz rneovim-1e37703a74eeebfa14c401db865157c39f1215bf.tar.bz2 rneovim-1e37703a74eeebfa14c401db865157c39f1215bf.zip |
build: remove pkgconfig-related code (#22422)
Cmake should already be able to find everything on its own.
Diffstat (limited to 'cmake/FindMsgpack.cmake')
-rw-r--r-- | cmake/FindMsgpack.cmake | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/cmake/FindMsgpack.cmake b/cmake/FindMsgpack.cmake index 2429c49706..7ab8239f8d 100644 --- a/cmake/FindMsgpack.cmake +++ b/cmake/FindMsgpack.cmake @@ -1,20 +1,4 @@ -# - Try to find msgpack -# Once done this will define -# MSGPACK_FOUND - System has msgpack -# MSGPACK_INCLUDE_DIRS - The msgpack include directories -# MSGPACK_LIBRARIES - The libraries needed to use msgpack - -find_package(PkgConfig) -if (PKG_CONFIG_FOUND) - pkg_search_module(PC_MSGPACK QUIET - msgpackc>=${Msgpack_FIND_VERSION} - msgpack>=${Msgpack_FIND_VERSION}) -endif() - -set(MSGPACK_DEFINITIONS ${PC_MSGPACK_CFLAGS_OTHER}) - -find_path(MSGPACK_INCLUDE_DIR msgpack/version_master.h - HINTS ${PC_MSGPACK_INCLUDEDIR} ${PC_MSGPACK_INCLUDE_DIRS}) +find_path(MSGPACK_INCLUDE_DIR msgpack/version_master.h) if(MSGPACK_INCLUDE_DIR) file(READ ${MSGPACK_INCLUDE_DIR}/msgpack/version_master.h msgpack_version_h) @@ -36,8 +20,7 @@ endif() 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}) + NAMES_PER_DIR) mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY) |