changeset 29:46621cb1bb48

fix build on ubuntu 16.04
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Sep 2020 10:36:12 +0200
parents 318c1442d9bd
children 662b9d3f217d
files Aws/CMakeLists.txt
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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