Commit f089d2e8 authored by Daniel Fischer's avatar Daniel Fischer

RETURN doesn't exactly return from the macro...

parent cd1dcf1a
...@@ -32,9 +32,7 @@ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/cmake_parse_arguments.cmake) ...@@ -32,9 +32,7 @@ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/cmake_parse_arguments.cmake)
MACRO(PLUGIN_APPEND_COLLECTIONS plugin) MACRO(PLUGIN_APPEND_COLLECTIONS plugin)
SET(fcopied "${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/FilesCopied") SET(fcopied "${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/FilesCopied")
IF(EXISTS ${fcopied}) IF(NOT EXISTS ${fcopied})
RETURN()
ENDIF()
FILE(GLOB collections ${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/*) FILE(GLOB collections ${CMAKE_CURRENT_SOURCE_DIR}/tests/collections/*)
FOREACH(cfile ${collections}) FOREACH(cfile ${collections})
FILE(READ ${cfile} contents) FILE(READ ${cfile} contents)
...@@ -42,6 +40,7 @@ MACRO(PLUGIN_APPEND_COLLECTIONS plugin) ...@@ -42,6 +40,7 @@ MACRO(PLUGIN_APPEND_COLLECTIONS plugin)
FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}") FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")
FILE(APPEND ${fcopied} "${fname}\n") FILE(APPEND ${fcopied} "${fname}\n")
ENDFOREACH() ENDFOREACH()
ENDIF()
ENDMACRO() ENDMACRO()
MACRO(MYSQL_ADD_PLUGIN) MACRO(MYSQL_ADD_PLUGIN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment