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})
|
${SECURITY_FRAMEWORK})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
if(WOLFSSL_DH)
|
||||||
# DH requires math (m) library
|
# DH requires math (m) library
|
||||||
target_link_libraries(wolfssl
|
target_link_libraries(wolfssl
|
||||||
PUBLIC
|
PUBLIC
|
||||||
m)
|
m)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
|
Reference in New Issue
Block a user