Skip to content

Commit

Permalink
Explicit Private for target_link_libraries (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Aug 23, 2023
1 parent a691a2f commit 75788fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/s3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target_include_directories(${S3_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

target_link_libraries(${S3_PROJECT_NAME} aws-c-s3)
target_link_libraries(${S3_PROJECT_NAME} PRIVATE aws-c-s3)

if (BUILD_SHARED_LIBS AND NOT WIN32)
message(INFO " s3 will be built with shared libs, but you may need to set LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib to run the application")
Expand Down

0 comments on commit 75788fb

Please sign in to comment.