diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-02-21 14:40:52 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-02-21 14:40:52 +0100 |
commit | 93ac7ae70ff000353538f732899b421a3f2ea7ce (patch) | |
tree | 819b5ca057d80b42699de219c982b7924857c406 /cmake/aws_sdk.cmake | |
parent | 4932aba921755cfbc351b92c67068a5c48d3922b (diff) | |
parent | a40de1bdeb218d66d5cc737758a4bab1b06f255d (diff) | |
download | mariadb-git-93ac7ae70ff000353538f732899b421a3f2ea7ce.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'cmake/aws_sdk.cmake')
-rw-r--r-- | cmake/aws_sdk.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/aws_sdk.cmake b/cmake/aws_sdk.cmake index 975a3fa6888..92e1e78ad3f 100644 --- a/cmake/aws_sdk.cmake +++ b/cmake/aws_sdk.cmake @@ -9,6 +9,9 @@ FUNCTION (CHECK_AWS_SDK RETVAL REASON) IF(NOT AWS_SDK_EXTERNAL_PROJECT) SKIP_AWS_SDK("AWS_SDK_EXTERNAL_PROJECT is not ON") ENDIF() + IF(NOT NOT_FOR_DISTRIBUTION) + SKIP_AWS_SDK("AWS SDK has Apache 2.0 License which is not complatible with GPLv2. Set -DNOT_FOR_DISTRIBUTION=ON if you need it") + ENDIF() # Check compiler support IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU") EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) @@ -73,6 +76,7 @@ FUNCTION(USE_AWS_SDK_LIBS) IF(NOT TARGET ${target}) MESSAGE(FATAL_ERROR "${target} is not a valid target") ENDIF() + SET(NON_DISTRIBUTABLE_WARNING "Apache 2.0" CACHE INTERNAL "") LIST(REMOVE_AT SDK_COMPONENTS 0) FOREACH(comp ${SDK_COMPONENTS}) SET_PROPERTY(GLOBAL PROPERTY AWS_SDK_LIBS ${comp} APPEND) |