mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 17:15:04 -05:00
37a0541882
My working build cmdline: $ cmake -DCMAKE_PREFIX_PATH=$HOME/build-wolfssl -DCMAKE_USE_WOLFSSL=ON . Assisted-by: Brad King Closes #5095
14 lines
409 B
CMake
14 lines
409 B
CMake
find_path(WolfSSL_INCLUDE_DIR NAMES wolfssl/ssl.h)
|
|
find_library(WolfSSL_LIBRARY NAMES wolfssl)
|
|
mark_as_advanced(WolfSSL_INCLUDE_DIR WolfSSL_LIBRARY)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(WolfSSL
|
|
REQUIRED_VARS WolfSSL_INCLUDE_DIR WolfSSL_LIBRARY
|
|
)
|
|
|
|
if(WolfSSL_FOUND)
|
|
set(WolfSSL_INCLUDE_DIRS ${WolfSSL_INCLUDE_DIR})
|
|
set(WolfSSL_LIBRARIES ${WolfSSL_LIBRARY})
|
|
endif()
|