jeanguyomarch / eovim

The Enlightened Neovim
https://github.com/jeanguyomarch/eovim/wiki
MIT License
193 stars 3 forks source link

build system doesn't find a recent msgpack-c or msgpack-cxx (version 6) #73

Closed Apteryks closed 1 year ago

Apteryks commented 1 year ago

The title says it all; I think it expects a msgpack.pc file; it's now called msgpack-c.pc for the C version, else for the C++ version it ships CMake files.

jeanguyomarch commented 1 year ago

Hi,

could you please try with the following patch (here):

diff --git a/cmake/Modules/FindMsgPack.cmake b/cmake/Modules/FindMsgPack.cmake
index 0b4e275..3dddcc6 100644
--- a/cmake/Modules/FindMsgPack.cmake
+++ b/cmake/Modules/FindMsgPack.cmake
@@ -1,5 +1,5 @@
 find_package(PkgConfig REQUIRED)
-pkg_search_module(MSGPACK QUIET msgpack)
+pkg_search_module(MSGPACK QUIET msgpack-c msgpack)

 # No pkg-config was shipped? Hope for the best by trying to find where the
 # damn thing is located. That's our last resort.

If this works for you, I'll be happy to add the fix to the source tree.

Apteryks commented 1 year ago

I confirm that It builds, at least!