diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/FindXmlRpcEpi.cmake | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/cmake/FindXmlRpcEpi.cmake')
-rw-r--r-- | linden/indra/cmake/FindXmlRpcEpi.cmake | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/linden/indra/cmake/FindXmlRpcEpi.cmake b/linden/indra/cmake/FindXmlRpcEpi.cmake new file mode 100644 index 0000000..ba217e7 --- /dev/null +++ b/linden/indra/cmake/FindXmlRpcEpi.cmake | |||
@@ -0,0 +1,48 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | # - Find XMLRPC-EPI | ||
4 | # Find the XMLRPC-EPI includes and library | ||
5 | # This module defines | ||
6 | # XMLRPCEPI_INCLUDE_DIR, where to find jpeglib.h, etc. | ||
7 | # XMLRPCEPI_LIBRARIES, the libraries needed to use XMLRPC-EPI. | ||
8 | # XMLRPCEPI_FOUND, If false, do not try to use XMLRPC-EPI. | ||
9 | # also defined, but not for general use are | ||
10 | # XMLRPCEPI_LIBRARY, where to find the XMLRPC-EPI library. | ||
11 | |||
12 | FIND_PATH(XMLRPCEPI_INCLUDE_DIR xmlrpc-epi/xmlrpc.h | ||
13 | /usr/local/include | ||
14 | /usr/include | ||
15 | ) | ||
16 | |||
17 | SET(XMLRPCEPI_NAMES ${XMLRPCEPI_NAMES} xmlrpc-epi) | ||
18 | FIND_LIBRARY(XMLRPCEPI_LIBRARY | ||
19 | NAMES ${XMLRPCEPI_NAMES} | ||
20 | PATHS /usr/lib /usr/local/lib | ||
21 | ) | ||
22 | |||
23 | IF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR) | ||
24 | SET(XMLRPCEPI_LIBRARIES ${XMLRPCEPI_LIBRARY}) | ||
25 | SET(XMLRPCEPI_FOUND "YES") | ||
26 | ELSE (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR) | ||
27 | SET(XMLRPCEPI_FOUND "NO") | ||
28 | ENDIF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR) | ||
29 | |||
30 | |||
31 | IF (XMLRPCEPI_FOUND) | ||
32 | IF (NOT XMLRPCEPI_FIND_QUIETLY) | ||
33 | MESSAGE(STATUS "Found XMLRPC-EPI: ${XMLRPCEPI_LIBRARIES}") | ||
34 | ENDIF (NOT XMLRPCEPI_FIND_QUIETLY) | ||
35 | ELSE (XMLRPCEPI_FOUND) | ||
36 | IF (XMLRPCEPI_FIND_REQUIRED) | ||
37 | MESSAGE(FATAL_ERROR "Could not find XMLRPC-EPI library") | ||
38 | ENDIF (XMLRPCEPI_FIND_REQUIRED) | ||
39 | ENDIF (XMLRPCEPI_FOUND) | ||
40 | |||
41 | # Deprecated declarations. | ||
42 | SET (NATIVE_XMLRPCEPI_INCLUDE_PATH ${XMLRPCEPI_INCLUDE_DIR} ) | ||
43 | GET_FILENAME_COMPONENT (NATIVE_XMLRPCEPI_LIB_PATH ${XMLRPCEPI_LIBRARY} PATH) | ||
44 | |||
45 | MARK_AS_ADVANCED( | ||
46 | XMLRPCEPI_LIBRARY | ||
47 | XMLRPCEPI_INCLUDE_DIR | ||
48 | ) | ||