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

set(ELFIO_FIND_QUIETLY ON)

if (STANDALONE)
  include(FindELFIO)
elseif (LINUX)
  use_prebuilt_binary(elfio)
  set(ELFIO_LIBRARIES ELFIO)
  set(ELFIO_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
  set(ELFIO_FOUND "YES")
endif (STANDALONE)

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