Commit 5264d49e authored by Luca Boccassi's avatar Luca Boccassi

Problem: duplicate definition in CMake tweetnacl builds

Solution: don't redefine preprocessor macro if it's already defined in
platform.hpp
parent b3bf5171
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment