From 8f68e3ee5668e97950730ad001c98e8697ae863e Mon Sep 17 00:00:00 2001
From: Vladislav Vaintroub <vvaintroub@mysql.com>
Date: Tue, 26 Jan 2010 23:47:57 +0100
Subject: [PATCH] Fix failing test cases on pushbuild

---
 cmake/plugin.cmake | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index f4aaeb651d7..2c00c71c3ee 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -113,9 +113,12 @@ MACRO(MYSQL_ADD_PLUGIN)
     SET (MYSQLD_STATIC_PLUGIN_LIBS ${MYSQLD_STATIC_PLUGIN_LIBS} 
       ${target} CACHE INTERNAL "" FORCE)
 
-    IF(NOT ARG_MANDATORY)
+    IF(ARG_MANDATORY)
+      SET(${with_var} ON CACHE INTERNAL "Link ${plugin} statically to the server" 
+       FORCE)
+    ELSE()	
       SET(${with_var} ON CACHE BOOL "Link ${plugin} statically to the server" 
-        FORCE)
+       FORCE)
     ENDIF()
 
     IF(ARG_MANDATORY)
-- 
2.30.9