Skip to content

Commit

Permalink
Minor CMakelists.txt cleanup (#213)
Browse files Browse the repository at this point in the history
Remove unused PLATFORM_LIBS variable. aws-c-auth picks up these dependencies transitively via aws-c-common.
  • Loading branch information
graebm committed Aug 11, 2023
1 parent db97b1a commit d2b45e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ if (WIN32)
source_group("Header Files\\aws\\auth" FILES ${AWS_AUTH_HEADERS})
source_group("Source Files" FILES ${AWS_AUTH_SRC})
endif ()
set(PLATFORM_LIBS "")
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(PLATFORM_LIBS "")
elseif (APPLE)
set(PLATFORM_LIBS "")
elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
set(PLATFORM_LIBS "")
endif()

file(GLOB AUTH_HEADERS
Expand Down Expand Up @@ -96,7 +89,7 @@ aws_use_package(aws-c-sdkutils)
aws_use_package(aws-c-cal)
aws_use_package(aws-c-http)

target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS} ${PLATFORM_LIBS})
target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS})

aws_prepare_shared_lib_exports(${PROJECT_NAME})

Expand Down

0 comments on commit d2b45e5

Please sign in to comment.