0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Problem: duplicate definition in CMake tweetnacl builds

Solution: don't redefine preprocessor macro if it's already defined in
platform.hpp
This commit is contained in:
Luca Boccassi 2017-11-18 13:54:32 +00:00
parent b3bf51716e
commit 5264d49eab

View File

@ -195,7 +195,8 @@ if(ZMQ_HAVE_CURVE)
endif()
#add additional required flags
if(ZMQ_HAVE_CURVE)
#ZMQ_USE_TWEETNACL will already be defined when not using sodium
if(ZMQ_HAVE_CURVE AND NOT ZMQ_USE_TWEETNACL)
target_compile_definitions(test_security_curve PRIVATE "-DZMQ_USE_TWEETNACL")
endif()