Skip to content

Commit

Permalink
Update deps fix cmake templates (#94)
Browse files Browse the repository at this point in the history
* Updated dependencies to latest, fixed cmake template files.

* Don't need the finder module updates anymore.

* Update aws-c-io for new libcrypto dependency mess, and pull in some minor bug fixes from s2n.

* Make sure tests don't get built accidentally this time.
  • Loading branch information
JonathanHenson authored Jan 29, 2020
1 parent 1f045a1 commit 102015e
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ if (BUILD_DEPS)
include(AwsFindPackage)

set(IN_SOURCE_BUILD ON)
set(BUILD_TESTING_PREV BUILD_TESTING)
set(BUILD_TESTING_PREV ${BUILD_TESTING})
set(BUILD_TESTING OFF)
add_subdirectory(aws-common-runtime/aws-c-common)

if (UNIX AND NOT APPLE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/aws-common-runtime/s2n/cmake/modules")
find_package(LibCrypto REQUIRED)
add_subdirectory(aws-common-runtime/s2n)
endif()

Expand All @@ -62,7 +60,7 @@ if (BUILD_DEPS)
add_subdirectory(aws-common-runtime/aws-c-http)
add_subdirectory(aws-common-runtime/aws-c-auth)
add_subdirectory(aws-common-runtime/aws-c-mqtt)
set(BUILD_TESTING BUILD_TESTING_PREV)
set(BUILD_TESTING ${BUILD_TESTING_PREV})
else()
include(AwsFindPackage)
set(IN_SOURCE_BUILD OFF)
Expand Down Expand Up @@ -210,6 +208,9 @@ aws_use_package(aws-c-http)
aws_use_package(aws-c-mqtt)
aws_use_package(aws-c-cal)
aws_use_package(aws-c-auth)
aws_use_package(aws-c-common)
aws_use_package(aws-c-io)

target_link_libraries(${PROJECT_NAME} ${DEP_AWS_LIBS})

install(FILES ${AWS_CRT_HEADERS} DESTINATION "include/aws/crt" COMPONENT Development)
Expand Down
2 changes: 1 addition & 1 deletion aws-common-runtime/aws-c-auth
2 changes: 1 addition & 1 deletion aws-common-runtime/aws-c-compression
2 changes: 1 addition & 1 deletion aws-common-runtime/aws-c-mqtt
2 changes: 1 addition & 1 deletion aws-common-runtime/s2n
Submodule s2n updated from b4e515 to a977c4
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_test_case(SHA256ResourceSafety)
add_test_case(MD5ResourceSafety)
add_test_case(SHA256HMACResourceSafety)
add_net_test_case(HttpDownloadNoBackPressure)
add_test_case(IotPublishSubscribe)
add_net_test_case(IotPublishSubscribe)
add_net_test_case(HttpClientConnectionManagerResourceSafety)
add_net_test_case(HttpClientConnectionWithPendingAcquisitions)
add_net_test_case(HttpClientConnectionWithPendingAcquisitionsAndClosedConnections)
Expand Down

0 comments on commit 102015e

Please sign in to comment.