summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-28 13:21:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-28 13:21:50 (GMT)
commit1593e16d881bf74fd8981e1290d20f28191f1f0e (patch)
tree1b6753dc6e1a12314452b3a477453f28e55b9949 /Tests
parentdc752c9d2d4bc2c0ad047689bd01bb75aa8f8fb9 (diff)
parent2a9220c34d26d33b5733ba41a25c44e02c8cdb3a (diff)
downloadCMake-1593e16d881bf74fd8981e1290d20f28191f1f0e.zip
CMake-1593e16d881bf74fd8981e1290d20f28191f1f0e.tar.gz
CMake-1593e16d881bf74fd8981e1290d20f28191f1f0e.tar.bz2
Merge topic 'get_filename_component_last_ext'
2a9220c34d Help: Add notes for topic 'get_filename_component_last_ext' edda30d0f5 Tests: Add tests for LAST_EXT and NAME_WLE 7a25ef326b Help: Add documentation for new get_filename_component components e50a36df48 cmGetFilenameComponentCommand: Add more components Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2853
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/get_filename_component/KnownComponents.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/get_filename_component/KnownComponents.cmake b/Tests/RunCMake/get_filename_component/KnownComponents.cmake
index ac77ac3..54b858f 100644
--- a/Tests/RunCMake/get_filename_component/KnownComponents.cmake
+++ b/Tests/RunCMake/get_filename_component/KnownComponents.cmake
@@ -11,8 +11,10 @@ set(expect_DIRECTORY "/path/to")
set(expect_NAME "filename.ext.in")
set(expect_EXT ".ext.in")
set(expect_NAME_WE "filename")
+set(expect_LAST_EXT ".in")
+set(expect_NAME_WLE "filename.ext")
set(expect_PATH "/path/to")
-foreach(c DIRECTORY NAME EXT NAME_WE PATH)
+foreach(c DIRECTORY NAME EXT NAME_WE LAST_EXT NAME_WLE PATH)
get_filename_component(actual_${c} "${filename}" ${c})
check("${c}" "${actual_${c}}" "${expect_${c}}")
list(APPEND non_cache_vars actual_${c})