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:
parent
b3bf51716e
commit
5264d49eab
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user