summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-16 14:52:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-02-16 14:52:34 (GMT)
commite0a3009cda60c51cefda2f7cb7100786eca2e219 (patch)
tree7fed4fdf28df9dd02355f8b5da179c505fd79f03 /Tests
parentdde82df24c44338f56171e2989729f6b86677900 (diff)
parentc8c45a2c4e10715e5cf05acaa0ac2c80f28b9a6a (diff)
downloadCMake-e0a3009cda60c51cefda2f7cb7100786eca2e219.zip
CMake-e0a3009cda60c51cefda2f7cb7100786eca2e219.tar.gz
CMake-e0a3009cda60c51cefda2f7cb7100786eca2e219.tar.bz2
Merge topic 'fix-cmake_parse_arguments-expansion'
c8c45a2c cmake_parse_arguments: Restore ;-list argument flattening
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake b/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
index 9a727dd..72c82ab 100644
--- a/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
+++ b/Tests/RunCMake/cmake_parse_arguments/CornerCases.cmake
@@ -13,3 +13,22 @@ cmake_parse_arguments(MY_INSTALL "${options}" "${oneValueArgs}"
TEST(MY_INSTALL_DESTINATION UNDEFINED)
TEST(MY_INSTALL_OPTIONAL TRUE)
+
+macro(foo)
+ set(_options )
+ set(_oneValueArgs FOO)
+ set(_multiValueArgs )
+ cmake_parse_arguments(_FOO2 "${_options}"
+ "${_oneValueArgs}"
+ "${_multiValueArgs}"
+ "${ARGN}")
+ cmake_parse_arguments(_FOO1 "${_options}"
+ "${_oneValueArgs}"
+ "${_multiValueArgs}"
+ ${ARGN})
+endmacro()
+
+foo(FOO foo)
+
+TEST(_FOO1_FOO foo)
+TEST(_FOO2_FOO foo)