Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
05ab9a84
Commit
05ab9a84
authored
May 08, 2014
by
Frank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find libsodium with cmake
parent
2cdfa1ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
CMakeLists.txt
+3
-1
curve_client.cpp
src/curve_client.cpp
+1
-1
curve_server.cpp
src/curve_server.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
05ab9a84
...
...
@@ -29,6 +29,8 @@ if(WITH_TWEETNACL)
else
()
list
(
APPEND TWEETNACL_SOURCES tweetnacl/contrib/randombytes/devurandom.c
)
endif
()
else
()
find_library
(
SODIUM_FOUND sodium
)
endif
()
...
...
@@ -610,7 +612,7 @@ else()
endif
()
endif
()
target_link_libraries
(
libzmq
${
CMAKE_THREAD_LIBS_INIT
}
)
target_link_libraries
(
libzmq
${
SODIUM_LIBRARY
}
${
CMAKE_THREAD_LIBS_INIT
}
)
if
(
HAVE_WS2_32
)
target_link_libraries
(
libzmq ws2_32
)
elseif
(
HAVE_WS2
)
...
...
src/curve_client.cpp
View file @
05ab9a84
...
...
@@ -46,7 +46,7 @@ zmq::curve_client_t::curve_client_t (const options_t &options_) :
randombytes
(
tmpbytes
,
4
);
#else
const
int
si
=
sodium_init
();
zmq_assert
(
is
==
0
);
zmq_assert
(
si
==
0
);
#endif
// Generate short-term key pair
...
...
src/curve_server.cpp
View file @
05ab9a84
...
...
@@ -51,7 +51,7 @@ zmq::curve_server_t::curve_server_t (session_base_t *session_,
randombytes
(
tmpbytes
,
4
);
#else
const
int
si
=
sodium_init
();
zmq_assert
(
is
==
0
);
zmq_assert
(
si
==
0
);
#endif
// Generate short-term key pair
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment