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

cmake: properly find older msgpack versions

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