File: FindNSL.cmake

package info (click to toggle)
ntirpc 4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,116 kB
  • sloc: ansic: 32,323; makefile: 10
file content (27 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (6)
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
27
# - Find NSL
#
# This module defines the following variables:
#    NSL_FOUND       = Was NSL found or not?
#
# On can set NSL_PATH_HINT before using find_package(NSL) and the
# module with use the PATH as a hint to find NSL.
#
# The hint can be given on the command line too:
#   cmake -DNSL_PATH_HINT=/DATA/ERIC/NSL /path/to/source

#find_path(NSL_INCLUDE_DIR
  #NAMES yp.h
  #PATHS ${NSL_HINT_PATH}
  #PATH_SUFFIXES nsl/rpcsvc
  #DOC "The NSL include headers")

find_library(NSL_LIBRARY nsl PATH_SUFFIXES nsl)

# handle the QUIETLY and REQUIRED arguments and set PRELUDE_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
#FIND_PACKAGE_HANDLE_STANDARD_ARGS(NSL REQUIRED_VARS NSL_INCLUDE_DIR NSL_LIBRARY)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NSL REQUIRED_VARS NSL_LIBRARY)

mark_as_advanced(NSL_INCLUDE_DIR)
mark_as_advanced(NSL_LIBRARY)