aboutsummaryrefslogtreecommitdiff
path: root/primedev/cmake/Findlibcurl.cmake
blob: 3f059665d7ec2ec8569dc0b93954ffbd658e1414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
if(NOT libcurl_FOUND)
    check_init_submodule(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl)

    set(BUILD_SHARED_LIBS
        OFF
        CACHE BOOL "Build shared libraries"
        )
    set(BUILD_CURL_EXE
        OFF
        CACHE BOOL "Build curl EXE"
        )
    set(HTTP_ONLY
        ON
        CACHE BOOL "Only build HTTP and HTTPS"
        )
    set(CURL_ENABLE_SSL
        ON
        CACHE BOOL "Enable SSL support"
        )
    set(CURL_USE_OPENSSL
        OFF
        CACHE BOOL "Disable OpenSSL"
        )
    set(CURL_USE_LIBSSH2
        OFF
        CACHE BOOL "Disable libSSH2"
        )
    set(CURL_USE_SCHANNEL
        ON
        CACHE BOOL "Enable Secure Channel"
        )
    set(CURL_CA_BUNDLE
        "none"
        CACHE STRING "Disable CA Bundle"
        )
    set(CURL_CA_PATH
        "none"
        CACHE STRING "Disable CA Path"
        )

    add_subdirectory(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl libcurl)
    set(libcurl_FOUND
        1
        PARENT_SCOPE
        )
endif()