List:Commits« Previous MessageNext Message »
From:Daniel Fischer Date:June 10 2011 12:57pm
Subject:bzr commit into mysql-5.5 branch (daniel.fischer:3443)
View as plain text  
#At file:///Users/df/bzr2/mysql-5.5-pluginsupport/ based on revid:jon.hauglid@stripped

 3443 Daniel Fischer	2011-06-10
      RETURN doesn't exactly return from the macro...

    modified:
      cmake/plugin.cmake
=== modified file 'cmake/plugin.cmake'
--- a/cmake/plugin.cmake	2011-06-10 07:12:10 +0000
+++ b/cmake/plugin.cmake	2011-06-10 12:57:42 +0000
@@ -32,16 +32,15 @@ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/cmake_
 
 MACRO(PLUGIN_APPEND_COLLECTIONS plugin)
   SET(fcopied "${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/FilesCopied")
-  IF(EXISTS ${fcopied})
-    RETURN()
+  IF(NOT EXISTS ${fcopied})
+    FILE(GLOB collections ${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/*)
+    FOREACH(cfile ${collections})
+      FILE(READ ${cfile} contents)
+      GET_FILENAME_COMPONENT(fname ${cfile} NAME)
+      FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")
+      FILE(APPEND ${fcopied} "${fname}\n")
+    ENDFOREACH()
   ENDIF()
-  FILE(GLOB collections ${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/*)
-  FOREACH(cfile ${collections})
-    FILE(READ ${cfile} contents)
-    GET_FILENAME_COMPONENT(fname ${cfile} NAME)
-    FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")
-    FILE(APPEND ${fcopied} "${fname}\n")
-  ENDFOREACH()
 ENDMACRO()
 
 MACRO(MYSQL_ADD_PLUGIN)


Attachment: [text/bzr-bundle] bzr/daniel.fischer@oracle.com-20110610125742-rn9kov83jovgwza1.bundle
Thread
bzr commit into mysql-5.5 branch (daniel.fischer:3443) Daniel Fischer10 Jun