summaryrefslogtreecommitdiff
path: root/cmake/ctest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/ctest.cmake')
-rw-r--r--cmake/ctest.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/ctest.cmake b/cmake/ctest.cmake
index 08852a366f6..5bc1ce5f832 100644
--- a/cmake/ctest.cmake
+++ b/cmake/ctest.cmake
@@ -1,12 +1,12 @@
-INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/cmake_parse_arguments.cmake)
+INCLUDE(CMakeParseArguments)
MACRO(MY_ADD_TEST name)
ADD_TEST(${name} ${name}-t)
ENDMACRO()
-MACRO (MY_ADD_TESTS)
- MYSQL_PARSE_ARGUMENTS(ARG "LINK_LIBRARIES;EXT" "" ${ARGN})
+MACRO(MY_ADD_TESTS)
+ CMAKE_PARSE_ARGUMENTS(ARG "" "EXT" "LINK_LIBRARIES" ${ARGN})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/unittest/mytap)
@@ -15,7 +15,7 @@ MACRO (MY_ADD_TESTS)
SET(ARG_EXT "c")
ENDIF()
- FOREACH(name ${ARG_DEFAULT_ARGS})
+ FOREACH(name ${ARG_UNPARSED_ARGUMENTS})
ADD_EXECUTABLE(${name}-t "${name}-t.${ARG_EXT}")
TARGET_LINK_LIBRARIES(${name}-t mytap ${ARG_LINK_LIBRARIES})
MY_ADD_TEST(${name})