deps/curl/CMake/FindNSS.cmake
raw| 1 | if(UNIX) |
| 2 | find_package(PkgConfig QUIET) |
| 3 | pkg_search_module(PC_NSS nss) |
| 4 | endif() |
| 5 | if(NOT PC_NSS_FOUND) |
| 6 | return() |
| 7 | endif() |
| 8 | |
| 9 | set(NSS_LIBRARIES ${PC_NSS_LINK_LIBRARIES}) |
| 10 | set(NSS_INCLUDE_DIRS ${PC_NSS_INCLUDE_DIRS}) |
| 11 | |
| 12 | include(FindPackageHandleStandardArgs) |
| 13 | find_package_handle_standard_args(NSS |
| 14 | REQUIRED_VARS NSS_LIBRARIES NSS_INCLUDE_DIRS |
| 15 | VERSION_VAR PC_NSS_VERSION) |
| 16 | |
| 17 | mark_as_advanced(NSS_INCLUDE_DIRS NSS_LIBRARIES) |