Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
66bb3c6c
Commit
66bb3c6c
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake: properly find older msgpack versions
Change-Id: I63e4cd903395d99092e0c0de47efaf7799793d05
parent
67ff077d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+2
-6
2 additions, 6 deletions
CMakeLists.txt
with
2 additions
and
6 deletions
CMakeLists.txt
+
2
−
6
View file @
66bb3c6c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment