mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
cmake: make system libraries dl, m, pthread customizable
via `DL_LIBRARY`, `MATH_LIBRARY`, `PTHREAD_LIBRARY` variables. They are used in Rustls, wolfSSL Find modules. Also: - always use `NAMES` keyword in `find_library()` calls. - respect `find_library()` results for `dl`, `m`, `pthread`. - formatting. Closes #15892
This commit is contained in:
parent
9a9498ea1e
commit
27b9e76706
4 changed files with 32 additions and 30 deletions
|
|
@ -91,9 +91,9 @@ else()
|
|||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
find_library(_math_library "m")
|
||||
if(_math_library)
|
||||
list(APPEND WOLFSSL_LIBRARIES "m") # for log and pow
|
||||
find_library(MATH_LIBRARY NAMES "m")
|
||||
if(MATH_LIBRARY)
|
||||
list(APPEND WOLFSSL_LIBRARIES ${MATH_LIBRARY}) # for log and pow
|
||||
endif()
|
||||
mark_as_advanced(_math_library)
|
||||
mark_as_advanced(MATH_LIBRARY)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue