Skip to content

Commit

Permalink
don't do anything for AWS plugin unless it's enabled
Browse files Browse the repository at this point in the history
in particular, don't do ExternalProject_Add()
that starts creating build directories for a disabled
plugin
  • Loading branch information
vuvova committed Mar 19, 2016
1 parent a1782b4 commit b24a04c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plugin/aws_key_management/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ MACRO(SKIP_AWS_PLUGIN msg)
RETURN()
ENDMACRO()

MYSQL_ADD_PLUGIN(aws_key_management aws_key_management_plugin.cc DISABLED
COMPONENT aws-key-management)

IF(NOT TARGET aws_key_management)
RETURN()
ENDIF()

# This plugin needs recent C++ compilers (AWS C++ SDK header files are using C++11 features)
SET(CXX11_FLAGS)
Expand Down Expand Up @@ -145,7 +151,4 @@ ELSE()
ENDIF()

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS}")
MYSQL_ADD_PLUGIN(aws_key_management aws_key_management_plugin.cc
COMPONENT aws-key-management
LINK_LIBRARIES ${AWS_SDK_LIBS}
DISABLED)
TARGET_LINK_LIBRARIES(aws_key_management ${AWS_SDK_LIBS})

0 comments on commit b24a04c

Please sign in to comment.