summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/get_filename_component
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-01-24 17:12:09 (GMT)
committerTushar Maheshwari <tushar27192@gmail.com>2019-01-24 17:12:42 (GMT)
commitedda30d0f5c7230b7854d8d714159ad68a2344ef (patch)
tree20f1d7a530e85803cef079b2d0e39fad730748ce /Tests/RunCMake/get_filename_component
parent7a25ef326bc53293f2dd288a7c092b4080658821 (diff)
downloadCMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.zip
CMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.tar.gz
CMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.tar.bz2
Tests: Add tests for LAST_EXT and NAME_WLE
Diffstat (limited to 'Tests/RunCMake/get_filename_component')
-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})