Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (31 sloc) 0.863 kB
c3f1ab2 Changes reqiured to open source HipHop
Scott MacVicar authored
1 # - Find LibCh (a cross platform RPC lib/tool)
2 # This module defines
3 # LibCh_INCLUDE_DIR, where to find LibCh headers
4 # LibCh_LIBS, LibCh libraries
5 # LibCh_FOUND, If false, do not try to use LibCh
6
7 find_path(LibCh_INCLUDE_DIR ch/continuum.h PATHS
8 /usr/local/include
9 /opt/local/include
10 )
11
12 set(LibCh_LIB_PATHS /usr/local/lib /opt/local/lib)
13 find_library(LibCh_LIB NAMES ch PATHS ${LibCh_LIB_PATHS})
14
15 if (LibCh_LIB AND LibCh_INCLUDE_DIR)
16 set(LibCh_FOUND TRUE)
17 set(LibCh_LIBS ${LibCh_LIB})
18 else ()
19 set(LibCh_FOUND FALSE)
20 endif ()
21
22 if (LibCh_FOUND)
23 if (NOT LibCh_FIND_QUIETLY)
24 message(STATUS "Found libCh: ${LibCh_LIBS}")
25 endif ()
26 else ()
27 if (LibCh_FIND_REQUIRED)
28 message(FATAL_ERROR "Could NOT find libch library.")
29 endif ()
30 message(STATUS "libCh NOT found.")
31 endif ()
32
33 mark_as_advanced(
34 LibCh_LIB
35 LibCh_INCLUDE_DIR
36 )
Something went wrong with that request. Please try again.