0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

no tweetnacl for windows currently

This commit is contained in:
Frank 2014-05-01 21:35:36 +02:00
parent 63cc250d05
commit 01afdf8476

View File

@ -9,21 +9,25 @@ if(APPLE)
option(ZMQ_BUILD_FRAMEWORK "Build as OS X framework" ON)
endif()
if(WIN32)
option(WITH_TWEETNACL "Build with tweetnacl" OFF)
else()
option(WITH_TWEETNACL "Build with tweetnacl" ON)
endif()
if(WITH_TWEETNACL)
add_definitions(-DHAVE_TWEETNACL -DHAVE_LIBSODIUM)
include_directories(
tweetnacl/contrib/randombytes
tweetnacl/src
)
tweetnacl/contrib/randombytes
tweetnacl/src
)
set(TWEETNACL_SOURCES
tweetnacl/src/tweetnacl.c
)
tweetnacl/src/tweetnacl.c
)
if(WIN32)
else()
list(APPEND TWEETNACL_SOURCES tweetnacl/contrib/randombytes/devurandom.c)
list(APPEND TWEETNACL_SOURCES tweetnacl/contrib/randombytes/devurandom.c)
endif()
endif()