summaryrefslogtreecommitdiff
path: root/indra/cmake/CURL.cmake
blob: 7c93819e7527935f04b1143103a9fe2f5a9d0baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- cmake -*-
include(Prebuilt)

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

use_conan_binary(libcurl)
use_prebuilt_binary(curl)
if (WINDOWS)
  target_link_libraries(ll::libcurl INTERFACE libcurl.lib)
else (WINDOWS)
  target_link_libraries(ll::libcurl INTERFACE libcurl.a)
endif (WINDOWS)
target_include_directories( ll::libcurl SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)