summaryrefslogtreecommitdiff
path: root/cmake/ctest.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-20 13:41:22 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-23 16:02:56 +0100
commit4f84d9ce888864bd4fd3863ace3df33a64236d6b (patch)
tree56056d51ecc41ff13b888c505ee469ab7235e84a /cmake/ctest.cmake
parent061f84ab86ce8a9df6c7bb364a706c19e8a4e139 (diff)
downloadmariadb-git-4f84d9ce888864bd4fd3863ace3df33a64236d6b.tar.gz
cmake: MYSQL_PARSE_ARGUMENTS -> CMAKE_PARSE_ARGUMENTS
Diffstat (limited to 'cmake/ctest.cmake')
-rw-r--r--cmake/ctest.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/ctest.cmake b/cmake/ctest.cmake
index d29a655fc57..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})
+ 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})