Skip to content

Commit

Permalink
move flag to cmake_args
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkh committed Sep 25, 2024
1 parent 686dc5f commit ccae671
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ else()
else()
list(APPEND AWSSDK_LIBRARIES ${aws_cpp_sdk_INSTALL}/lib/lib${lib}.a)
endif()
if(MSVC)
target_compile_options(lib/${lib}.lib PRIVATE /W3 /WX)
endif()
endforeach()

if(UNIX AND NOT APPLE)
Expand All @@ -68,7 +65,7 @@ else()
aws_sdk
SOURCE_DIR ${aws_cpp_sdk_SOURCE_DIR}
INSTALL_DIR ${aws_cpp_sdk_INSTALL}
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"
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" "-DCMAKE_CXX_FLAGS=\W3 \WX"
BUILD_BYPRODUCTS ${AWSSDK_LIBRARIES}
)
endif()
Expand Down

0 comments on commit ccae671

Please sign in to comment.