Fix Cmake to exclude libm when DH is not enabled

This commit is contained in:
Eric Blankenhorn
2023-01-17 16:28:36 -06:00
parent b15bc3d236
commit 68520e3f0b

View File

@@ -1949,10 +1949,12 @@ elseif(APPLE)
${SECURITY_FRAMEWORK}) ${SECURITY_FRAMEWORK})
endif() endif()
else() else()
# DH requires math (m) library if(WOLFSSL_DH)
target_link_libraries(wolfssl # DH requires math (m) library
PUBLIC target_link_libraries(wolfssl
m) PUBLIC
m)
endif()
endif() endif()
#################################################### ####################################################