Skip to content

Commit

Permalink
Merge pull request #28 from awslabs/dont_leak_deps
Browse files Browse the repository at this point in the history
Don't leak out platform level dependencies.
  • Loading branch information
JonathanHenson authored Jan 24, 2020
2 parents f6fe939 + 66e4a55 commit d6640ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_CAL")
aws_add_sanitizers(${PROJECT_NAME} BLACKLIST "sanitizer-blacklist.txt")

aws_use_package(aws-c-common)
target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS} ${PLATFORM_LIBS})
target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS} PRIVATE ${PLATFORM_LIBS})

if (BYO_CRYPTO)
target_compile_definitions(${PROJECT_NAME} PRIVATE -DAWS_BYO_CRYPTO)
Expand Down
4 changes: 2 additions & 2 deletions cmake/aws-c-cal-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if (NOT BYO_CRYPTO AND NOT WIN32 AND NOT APPLE)
endif()

if (BUILD_SHARED_LIBS)
include(${CMAKE_CURRENT_LIST_DIR}/shared/@CMAKE_PROJECT_NAME@-targets.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake)
else()
include(${CMAKE_CURRENT_LIST_DIR}/static/@CMAKE_PROJECT_NAME@-targets.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake)
endif()

0 comments on commit d6640ed

Please sign in to comment.