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

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

use_conan_binary(expat)
use_prebuilt_binary(expat)
if (WINDOWS)
    target_link_libraries( ll::expat  INTERFACE libexpatMT )
    set(EXPAT_COPY libexpatMT.dll)
else (WINDOWS)
    target_link_libraries( ll::expat INTERFACE expat )
    if (DARWIN)
        set(EXPAT_COPY libexpat.1.dylib libexpat.dylib)
    else ()
        set(EXPAT_COPY libexpat.so.1 libexpat.so)
    endif ()
endif (WINDOWS)
target_include_directories( ll::expat SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )