blob: 657cad88c7ab5d6b6bad122a8bcfb6051ab3d898 [file] [log] [blame]
# - try to find NSS3 libraries
# Once done this will define
#
# NSS_FOUND - system has NSS3
# NSS3_CFLAGS - the NSS CFlags
# NSS3_LIBRARIES - Link these to use NSS
#
# Copyright 2015 André Guerreiro, <aguerreiro1985@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
include(FindPackageHandleStandardArgs)
if (NOT WIN32)
find_package(PkgConfig REQUIRED)
pkg_check_modules(NSS3 "nss>=3.19")
find_package_handle_standard_args(NSS3 DEFAULT_MSG NSS3_LIBRARIES NSS3_CFLAGS)
endif(NOT WIN32)