Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
2f6f8e2a
Commit
2f6f8e2a
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake/tools: link with readline dependenciess
parent
8f141951
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+0
-2
0 additions, 2 deletions
CMakeLists.txt
tools/CMakeLists.txt
+4
-4
4 additions, 4 deletions
tools/CMakeLists.txt
with
4 additions
and
6 deletions
CMakeLists.txt
+
0
−
2
View file @
2f6f8e2a
...
@@ -96,8 +96,6 @@ if (OPENDHT_SANITIZE)
...
@@ -96,8 +96,6 @@ if (OPENDHT_SANITIZE)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-lncurses"
)
if
(
NOT CMAKE_BUILD_TYPE
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
tools/CMakeLists.txt
+
4
−
4
View file @
2f6f8e2a
...
@@ -3,9 +3,9 @@ add_executable (dhtnode dhtnode.cpp tools_common.h)
...
@@ -3,9 +3,9 @@ add_executable (dhtnode dhtnode.cpp tools_common.h)
add_executable
(
dhtscanner dhtscanner.cpp tools_common.h
)
add_executable
(
dhtscanner dhtscanner.cpp tools_common.h
)
add_executable
(
dhtchat dhtchat.cpp tools_common.h
)
add_executable
(
dhtchat dhtchat.cpp tools_common.h
)
target_link_libraries
(
dhtnode LINK_PUBLIC
readline
)
target_link_libraries
(
dhtnode LINK_PUBLIC
${
READLINE_LIBRARIES
}
)
target_link_libraries
(
dhtscanner LINK_PUBLIC
readline
)
target_link_libraries
(
dhtscanner LINK_PUBLIC
${
READLINE_LIBRARIES
}
)
target_link_libraries
(
dhtchat LINK_PUBLIC
readline
)
target_link_libraries
(
dhtchat LINK_PUBLIC
${
READLINE_LIBRARIES
}
)
if
(
OPENDHT_SHARED
)
if
(
OPENDHT_SHARED
)
target_link_libraries
(
dhtnode LINK_PUBLIC opendht
)
target_link_libraries
(
dhtnode LINK_PUBLIC opendht
)
...
@@ -19,7 +19,7 @@ endif ()
...
@@ -19,7 +19,7 @@ endif ()
if
(
OPENDHT_C
)
if
(
OPENDHT_C
)
add_executable
(
dhtcnode dhtcnode.c
)
add_executable
(
dhtcnode dhtcnode.c
)
target_link_libraries
(
dhtcnode LINK_PUBLIC opendht-c
readline
)
target_link_libraries
(
dhtcnode LINK_PUBLIC opendht-c
${
READLINE_LIBRARIES
}
)
endif
()
endif
()
if
(
NOT DEFINED CMAKE_INSTALL_BINDIR
)
if
(
NOT DEFINED CMAKE_INSTALL_BINDIR
)
...
...
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