mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00: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()
|
endif()
|
||||||
|
|
||||||
#add additional required flags
|
#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")
|
target_compile_definitions(test_security_curve PRIVATE "-DZMQ_USE_TWEETNACL")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user