# HG changeset patch # User Sebastien Jodogne # Date 1599554172 -7200 # Node ID 46621cb1bb482b40e41a1607d49edf092cc8b3d7 # Parent 318c1442d9bd29cd8e3d78a2cf6b4dac7b425616 fix build on ubuntu 16.04 diff -r 318c1442d9bd -r 46621cb1bb48 Aws/CMakeLists.txt --- a/Aws/CMakeLists.txt Mon Sep 07 19:00:57 2020 +0200 +++ b/Aws/CMakeLists.txt Tue Sep 08 10:36:12 2020 +0200 @@ -108,6 +108,11 @@ curl crypto ) + if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + list(APPEND AWSSDK_LINK_LIBRARIES + gcc # for "undefined reference to `__cpu_model'" on Ubuntu 16.04 + ) + endif() else() set(AWSSDK_LINK_LIBRARIES ${BINARY_DIR}/aws-cpp-sdk-core/libaws-cpp-sdk-core.so