Skip to content

Commit

Permalink
try inline
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkh committed Sep 25, 2024
1 parent d69ea0c commit f1aad46
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,12 @@ else()
list(APPEND AWSSDK_LIBRARIES "${aws_cpp_sdk_INSTALL}/lib/libs2n.a")
endif()

set(
cmake_args
"-DBUILD_SHARED_LIBS=OFF"
"-DBUILD_ONLY=transfer;s3"
"-DENABLE_TESTING=OFF"
"-DCMAKE_BUILD_TYPE=Release"
"-DCMAKE_INSTALL_PREFIX=${aws_cpp_sdk_INSTALL}"
"-DCMAKE_INSTALL_LIBDIR=lib"
)

if(MSVC)
list(APPEND cmake_args "-DAWS_SDK_WARNINGS_ARE_ERRORS=OFF")
endif()

include(ExternalProject)
ExternalProject_Add(
aws_sdk
SOURCE_DIR ${aws_cpp_sdk_SOURCE_DIR}
INSTALL_DIR ${aws_cpp_sdk_INSTALL}
CMAKE_ARGS ${cmake_args}
CMAKE_ARGS "-DAWS_SDK_WARNINGS_ARE_ERRORS=OFF" "-DBUILD_SHARED_LIBS=OFF" "-DBUILD_ONLY=transfer;s3" "-DENABLE_TESTING=OFF" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=${aws_cpp_sdk_INSTALL}" "-DCMAKE_INSTALL_LIBDIR=lib"
BUILD_BYPRODUCTS ${AWSSDK_LIBRARIES}
)
endif()
Expand Down

0 comments on commit f1aad46

Please sign in to comment.