forked from wolfSSL/wolfssl
Fix Cmake to exclude libm when DH is not enabled
This commit is contained in:
@@ -1949,10 +1949,12 @@ elseif(APPLE)
|
||||
${SECURITY_FRAMEWORK})
|
||||
endif()
|
||||
else()
|
||||
# DH requires math (m) library
|
||||
target_link_libraries(wolfssl
|
||||
PUBLIC
|
||||
m)
|
||||
if(WOLFSSL_DH)
|
||||
# DH requires math (m) library
|
||||
target_link_libraries(wolfssl
|
||||
PUBLIC
|
||||
m)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
####################################################
|
||||
|
Reference in New Issue
Block a user