summaryrefslogtreecommitdiff
path: root/cmake/plugin.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-11-12 13:42:50 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-11-12 13:42:50 +0100
commit9c70014e650e7c86762c2c000f978682cd52dd77 (patch)
tree2a9de33eb5ae75bb7de7ffa7ac486e42126b9bca /cmake/plugin.cmake
parent601f4f7200f5631028350e5cedb7d135de47c140 (diff)
downloadmariadb-git-9c70014e650e7c86762c2c000f978682cd52dd77.tar.gz
Bug#58074: ADD_VERSION_INFO cmake/mysql_version.cmake fails if LINK_FLAGS are modified
Backport version info handling (Windows-specific) from next-mr. Instead of adding ".res" object as linker flag, add resource file (.rc) file to the source list. This is more obvious and less error prone method.
Diffstat (limited to 'cmake/plugin.cmake')
-rw-r--r--cmake/plugin.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 94fdc8bf1e9..bf34407db25 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -151,6 +151,7 @@ MACRO(MYSQL_ADD_PLUGIN)
ENDIF()
ENDIF()
+ ADD_VERSION_INFO(${target} MODULE SOURCES)
ADD_LIBRARY(${target} MODULE ${SOURCES})
DTRACE_INSTRUMENT(${target})
SET_TARGET_PROPERTIES (${target} PROPERTIES PREFIX ""