File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
plugin/aws_key_management Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ ELSE()
103
103
ADD_LIBRARY (${lib} STATIC IMPORTED GLOBAL )
104
104
ADD_DEPENDENCIES (${lib} aws_sdk_cpp )
105
105
SET (loc "${CMAKE_CURRENT_BINARY_DIR} /aws_sdk_cpp/lib/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX} " )
106
- SET (byproducts ${byproducts} BUILD_BYPRODUCTS ${loc} )
106
+ IF (CMAKE_VERSION VERSION_GREATER "3.1" )
107
+ SET (byproducts ${byproducts} BUILD_BYPRODUCTS ${loc} )
108
+ ENDIF ()
107
109
SET_TARGET_PROPERTIES (${lib} PROPERTIES IMPORTED_LOCATION ${loc} )
108
110
ENDFOREACH ()
109
111
@@ -139,14 +141,13 @@ ENDIF()
139
141
140
142
ADD_DEFINITIONS (${SSL_DEFINES} ) # Need to know whether openssl should be initialized
141
143
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS} " )
142
- MYSQL_ADD_PLUGIN (aws_key_management aws_key_management_plugin.cc
143
- LINK_LIBRARIES ${AWS_SDK_LIBS}
144
- COMPONENT aws-key-management )
145
-
146
144
IF (WIN32 )
147
145
SET (AWS_CPP_SDK_DEPENDENCIES bcrypt winhttp wininet userenv version )
148
146
ELSE ()
149
147
SET (AWS_CPP_SDK_DEPENDENCIES ${SSL_LIBRARIES} ${CURL_LIBRARIES} ${UUID_LIBRARIES} )
150
148
ENDIF ()
149
+ MYSQL_ADD_PLUGIN (aws_key_management aws_key_management_plugin.cc
150
+ LINK_LIBRARIES ${AWS_SDK_LIBS} ${AWS_CPP_SDK_DEPENDENCIES}
151
+ COMPONENT aws-key-management )
152
+
151
153
152
- TARGET_LINK_LIBRARIES (aws_key_management ${AWS_SDK_LIBS} ${AWS_CPP_SDK_DEPENDENCIES} )
You can’t perform that action at this time.
0 commit comments