File: FindNSS3.cmake

package info (click to toggle)
poppler 20.09.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 16,092 kB
  • sloc: cpp: 151,577; ansic: 30,155; python: 367; makefile: 42; sh: 36
file content (26 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# - 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 MSVC)
  find_package(PkgConfig REQUIRED)

  if(${CMAKE_VERSION} VERSION_LESS "3.6.0")
    pkg_check_modules(NSS3 "nss>=3.19")
  else ()
    pkg_check_modules(NSS3 IMPORTED_TARGET "nss>=3.19")
  endif()

  find_package_handle_standard_args(NSS3 DEFAULT_MSG NSS3_LIBRARIES NSS3_CFLAGS)

endif(NOT MSVC)