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

include_guard()
add_library( ll::expat INTERFACE IMPORTED )

use_system_binary(expat)
use_prebuilt_binary(expat)
if (WINDOWS)
    target_compile_definitions( ll::expat INTERFACE XML_STATIC=1)
    target_link_libraries( ll::expat  INTERFACE
            debug ${ARCH_PREBUILT_DIRS_DEBUG}/libexpatd.lib
            optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libexpat.lib)
else ()
    target_link_libraries( ll::expat  INTERFACE
            debug ${ARCH_PREBUILT_DIRS_DEBUG}/libexpat.a
            optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libexpat.a)
endif ()
target_include_directories( ll::expat SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )