Skip to content

Commit

Permalink
Enable ssl in curl
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Nov 28, 2024
1 parent 5a124d9 commit 5626712
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ target_link_libraries(integration_tests_runner
GTest::gtest
GTest::gtest_main
GTest::gmock
${CMAKE_DL_LIBS}
)

add_test(integration_tests
Expand Down
1 change: 1 addition & 0 deletions src/system_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ target_link_libraries(system_tests_runner
GTest::gtest
GTest::gtest_main
GTest::gmock
${CMAKE_DL_LIBS}
)

set_target_properties(system_tests_runner
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_link_libraries(unit_tests_runner
GTest::gtest
GTest::gtest_main
GTest::gmock
${CMAKE_DL_LIBS}
)

target_include_directories(unit_tests_runner
Expand Down
8 changes: 7 additions & 1 deletion third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ if(SUPERBUILD)
build_target(liblzma)

if(NOT BUILD_WITHOUT_CURL)
build_target(openssl)

if(NOT IOS)
build_target(zlib-ng)
endif()

build_target(curl)
endif()

if(BUILD_MAVSDK_SERVER)
build_target(openssl)
if (BUILD_WITHOUT_CURL)
build_target(openssl)
endif()

build_target(cares)
build_target(absl)
build_target(protobuf)
Expand Down
10 changes: 3 additions & 7 deletions third_party/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ list(APPEND CMAKE_ARGS
"-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}"
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
"-DCURL_USE_OPENSSL=OFF"
"-DCURL_USE_OPENSSL=ON"
"-DCURL_USE_LIBSSH2=OFF"
"-DBUILD_CURL_EXE=OFF"
"-DBUILD_SHARED_LIBS=OFF"
"-DCURL_CA_PATH_SET=OFF"
"-DCURL_ZLIB=OFF"
Expand All @@ -19,13 +20,8 @@ list(APPEND CMAKE_ARGS
"-DBUILD_TESTING=OFF"
)

if(ANDROID)
if(IOS)
list(APPEND CMAKE_ARGS
"-DBUILD_CURL_EXE=OFF"
)
elseif(IOS)
list(APPEND CMAKE_ARGS
"-DBUILD_CURL_EXE=OFF"
"-DPLATFORM=${PLATFORM}"
"-DDEPLOYMENT_TARGET=${DEPLOYMENT_TARGET}"
"-DENABLE_STRICT_TRY_COMPILE=${ENABLE_STRICT_TRY_COMPILE}"
Expand Down

0 comments on commit 5626712

Please sign in to comment.