summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_parse_arguments
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2015-12-05 18:01:12 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-17 15:44:28 (GMT)
commite8b148318f1fab26b2289cadc2d0c5e12201169d (patch)
treec18ca5a3415761ae65f8db15162ec250c9e5c10a /Tests/RunCMake/cmake_parse_arguments
parentcbbdfc2b6120e192b4248ce89af93cf34ea8a254 (diff)
downloadCMake-e8b148318f1fab26b2289cadc2d0c5e12201169d.zip
CMake-e8b148318f1fab26b2289cadc2d0c5e12201169d.tar.gz
CMake-e8b148318f1fab26b2289cadc2d0c5e12201169d.tar.bz2
CMakeParseArguments: replace by native cmake_parse_arguments command
Implement a native `cmake_parse_arguments` command that is fully compatible with the documented behaviour of the previous implementation. Leave the CMakeParseArguments module empty but existing for compatibility.
Diffstat (limited to 'Tests/RunCMake/cmake_parse_arguments')
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake1
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/Errors-stderr.txt21
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/Errors.cmake2
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/Initialization.cmake1
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/Mix.cmake1
5 files changed, 9 insertions, 17 deletions
diff --git a/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake b/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
index 7337b71..9a727dd 100644
--- a/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
+++ b/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
@@ -1,5 +1,4 @@
include(${CMAKE_CURRENT_LIST_DIR}/test_utils.cmake)
-include(CMakeParseArguments)
# example from the documentation
# OPTIONAL is a keyword and therefore terminates the definition of
diff --git a/Tests/RunCMake/cmake_parse_arguments/Errors-stderr.txt b/Tests/RunCMake/cmake_parse_arguments/Errors-stderr.txt
index 5976fdc..5394eaf 100644
--- a/Tests/RunCMake/cmake_parse_arguments/Errors-stderr.txt
+++ b/Tests/RunCMake/cmake_parse_arguments/Errors-stderr.txt
@@ -1,17 +1,14 @@
-CMake Error at Errors.cmake:3 \(cmake_parse_arguments\):
- CMAKE_PARSE_ARGUMENTS Function invoked with incorrect arguments for
- function named: CMAKE_PARSE_ARGUMENTS
+CMake Error at Errors\.cmake:1 \(cmake_parse_arguments\):
+ cmake_parse_arguments must be called with at least 4 arguments\.
Call Stack \(most recent call first\):
- CMakeLists.txt:3 \(include\)
+ CMakeLists\.txt:3 \(include\)
+
-CMake Error at Errors.cmake:4 \(cmake_parse_arguments\):
- CMAKE_PARSE_ARGUMENTS Function invoked with incorrect arguments for
- function named: CMAKE_PARSE_ARGUMENTS
+CMake Error at Errors\.cmake:2 \(cmake_parse_arguments\):
+ cmake_parse_arguments must be called with at least 4 arguments\.
Call Stack \(most recent call first\):
- CMakeLists.txt:3 \(include\)
+ CMakeLists\.txt:3 \(include\)
+
-CMake Error at Errors.cmake:5 \(cmake_parse_arguments\):
- CMAKE_PARSE_ARGUMENTS Function invoked with incorrect arguments for
- function named: CMAKE_PARSE_ARGUMENTS
+CMake Error at Errors\.cmake:3 \(cmake_parse_arguments\):
+ cmake_parse_arguments must be called with at least 4 arguments\.
Call Stack \(most recent call first\):
- CMakeLists.txt:3 \(include\)
+ CMakeLists\.txt:3 \(include\)
diff --git a/Tests/RunCMake/cmake_parse_arguments/Errors.cmake b/Tests/RunCMake/cmake_parse_arguments/Errors.cmake
index 2db3bb1..98e22e9 100644
--- a/Tests/RunCMake/cmake_parse_arguments/Errors.cmake
+++ b/Tests/RunCMake/cmake_parse_arguments/Errors.cmake
@@ -1,5 +1,3 @@
-include(CMakeParseArguments)
-
cmake_parse_arguments()
cmake_parse_arguments(prefix OPT)
cmake_parse_arguments(prefix OPT SINGLE)
diff --git a/Tests/RunCMake/cmake_parse_arguments/Initialization.cmake b/Tests/RunCMake/cmake_parse_arguments/Initialization.cmake
index 8729bc6..462f923 100644
--- a/Tests/RunCMake/cmake_parse_arguments/Initialization.cmake
+++ b/Tests/RunCMake/cmake_parse_arguments/Initialization.cmake
@@ -1,5 +1,4 @@
include(${CMAKE_CURRENT_LIST_DIR}/test_utils.cmake)
-include(CMakeParseArguments)
# unparsed arguments
cmake_parse_arguments(pref "" "" "")
diff --git a/Tests/RunCMake/cmake_parse_arguments/Mix.cmake b/Tests/RunCMake/cmake_parse_arguments/Mix.cmake
index c14fdfd..b3eff39 100644
--- a/Tests/RunCMake/cmake_parse_arguments/Mix.cmake
+++ b/Tests/RunCMake/cmake_parse_arguments/Mix.cmake
@@ -1,5 +1,4 @@
include(${CMAKE_CURRENT_LIST_DIR}/test_utils.cmake)
-include(CMakeParseArguments)
# specify two keywords for each category and set the first keyword of each
# within ARGN