Skip to content

Commit f4329c5

Browse files
xnoxbluca
authored andcommitted
cmake: add curve_keygen binary
When sodium is enabled, also build curve_keygen binary. This is to bring cmake builds to parity with autoconf. Fixes: #4675
1 parent dbbd240 commit f4329c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,3 +1915,9 @@ if(ENABLE_NO_EXPORT)
19151915
message(STATUS "Building with empty ZMQ_EXPORT macro")
19161916
add_definitions(-DZMQ_NO_EXPORT)
19171917
endif()
1918+
1919+
if (ENABLE_CURVE)
1920+
add_executable(curve_keygen tools/curve_keygen.cpp)
1921+
target_link_libraries(curve_keygen libzmq)
1922+
install(TARGETS curve_keygen RUNTIME DESTINATION bin)
1923+
endif()

0 commit comments

Comments
 (0)