aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/ELFIO.cmake
blob: 0d376bf1038daf099a54efc3e4ae5233646f7553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- cmake -*-
include(Prebuilt)

set(ELFIO_FIND_QUIETLY ON)

if (STANDALONE)
  include(FindELFIO)
elseif (LINUX)
#     if (${ARCH} STREQUAL "x86_64")
#        set(ELFIO_FOUND "NO")
#     else (${ARCH} STREQUAL "x86_64")
        use_prebuilt_binary(elfio)
        set(ELFIO_LIBRARIES ELFIO)
        set(ELFIO_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
        set(ELFIO_FOUND "YES")
#     endif (${ARCH} STREQUAL "x86_64")
endif (STANDALONE)

if (ELFIO_FOUND)
  add_definitions(-DLL_ELFBIN=1)
else (ELFIO_FOUND)
  set(ELFIO_INCLUDE_DIR "")
endif (ELFIO_FOUND)