Skip to content
Snippets Groups Projects
Commit 20649b5b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dhtnet: fix cmake

Change-Id: Iac99480b4f9677a111d6347617346d6b29fea4bc
parent 9d35096b
Branches
Tags
No related merge requests found
...@@ -15,11 +15,11 @@ set (includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}") ...@@ -15,11 +15,11 @@ set (includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
set (VERSION ${CMAKE_PROJECT_VERSION}) set (VERSION ${CMAKE_PROJECT_VERSION})
find_package (PkgConfig REQUIRED) find_package (PkgConfig REQUIRED)
find_package(msgpackc-cxx QUIET CONFIG NAMES msgpackc-cxx msgpack)
if(msgpackc-cxx_FOUND) find_package(msgpack-cxx CONFIG)
if(NOT msgpack-cxx_FOUND)
find_package(msgpackc-cxx CONFIG REQUIRED NAMES msgpackc-cxx msgpack)
add_library(msgpack-cxx ALIAS msgpackc-cxx) add_library(msgpack-cxx ALIAS msgpackc-cxx)
else()
find_package(msgpack-cxx CONFIG REQUIRED)
endif() endif()
find_package(fmt) find_package(fmt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment