File: FindXDR.cmake

package info (click to toggle)
netcdf-parallel 1%3A4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,668 kB
  • sloc: ansic: 200,241; sh: 10,807; yacc: 2,522; makefile: 1,306; lex: 1,153; xml: 173; awk: 2
file content (29 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (9)
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
28
29
#
# - Find xdr
# Find the native XDR includes and library
#
#  XDR_INCLUDE_DIRS  - where to find rpc/xdr.h
#  XDR_LIBRARIES     - List of libraries when using xdr.
#  XDR_FOUND         - True if xdr found.
#

include(SelectLibraryConfigurations)
include(FindPackageHandleStandardArgs)

find_path( XDR_INCLUDE_DIRS rpc/xdr.h
  ENV
  XDR_ROOT
  PATH_SUFFIXES include Include
  )
mark_as_advanced( XDR_INCLUDE_DIRS )

find_library ( XDR_LIBRARIES
  NAMES xdr
  ENV XDR_ROOT
  PATH_SUFFIXES lib Lib
  )
mark_as_advanced ( XDR_LIBRARIES )

find_package_handle_standard_args( XDR DEFAULT_MSG
  XDR_LIBRARIES XDR_INCLUDE_DIRS )