diff options
Diffstat (limited to 'linden/indra/cmake/ELFIO.cmake')
-rw-r--r-- | linden/indra/cmake/ELFIO.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/cmake/ELFIO.cmake b/linden/indra/cmake/ELFIO.cmake new file mode 100644 index 0000000..e51993b --- /dev/null +++ b/linden/indra/cmake/ELFIO.cmake | |||
@@ -0,0 +1,19 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | set(ELFIO_FIND_QUIETLY ON) | ||
5 | |||
6 | if (STANDALONE) | ||
7 | include(FindELFIO) | ||
8 | elseif (LINUX) | ||
9 | use_prebuilt_binary(elfio) | ||
10 | set(ELFIO_LIBRARIES ELFIO) | ||
11 | set(ELFIO_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include) | ||
12 | set(ELFIO_FOUND "YES") | ||
13 | endif (STANDALONE) | ||
14 | |||
15 | if (ELFIO_FOUND) | ||
16 | add_definitions(-DLL_ELFBIN=1) | ||
17 | else (ELFIO_FOUND) | ||
18 | set(ELFIO_INCLUDE_DIR "") | ||
19 | endif (ELFIO_FOUND) | ||