diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-04-06 09:52:25 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-04-06 09:52:25 +0300 |
commit | 1494147cf6f810dfd2a87c93be53e3c9da3a0958 (patch) | |
tree | f62d714617394660d75f804aa7850449733cc564 /cmake | |
parent | d528fd72f281541e95cec803e9db63d620cccf5e (diff) | |
parent | 25d69ea0124941cca54dbf0c2ebb2aa20ab2d6a8 (diff) | |
download | mariadb-git-1494147cf6f810dfd2a87c93be53e3c9da3a0958.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/plugin.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake index edbd2065f82..16da44311b6 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -201,9 +201,16 @@ MACRO(MYSQL_ADD_PLUGIN) # executable to the linker command line (it would result into link error). # Thus we skip TARGET_LINK_LIBRARIES on Linux, as it would only generate # an additional dependency. - IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT ARG_CLIENT) + IF(MSVC) + ADD_DEPENDENCIES(${target} gen_mysqld_lib) + TARGET_LINK_LIBRARIES(${target} mysqld_import_lib) + ELSEIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") TARGET_LINK_LIBRARIES (${target} mysqld) ENDIF() + + IF(ARG_LINK_LIBRARIES) + TARGET_LINK_LIBRARIES (${target} ${ARG_LINK_LIBRARIES}) + ENDIF() ADD_DEPENDENCIES(${target} GenError ${ARG_DEPENDENCIES}) SET_TARGET_PROPERTIES(${target} PROPERTIES |